Pointers- Confused and hating them

0ffh frank at youknow.what.todo.interNETz
Wed Jan 2 19:19:51 PST 2008


0ffh wrote:
> It nearly 4 am and I have found I have a tendency to write before read,
> but let's see: First of all, the union won't tell you which member is
> used. What you're doing right now is you are going by the thing the
> pointer points to. It's the same as ((*_cptr)!=0). That might actually
> work on utf-8 encoded text, if you test in order from the smallest
> (char) to the biggest (dchar) member.

Scratch that last sentence.
I have no idea right now why that seems to work for you. =)

regards, frank



More information about the Digitalmars-d mailing list