Latest string_token Code

bearophile bearophileHUGS at lycos.com
Tue Jun 22 03:27:19 PDT 2010


Ben Hanson:
> It still needs some work as memmove works with bytes so I need the
> equivalent of 'sizeof' in D for this.

T.sizeof gives the size of the init of a variable of type T.
If T is a dynamic array it returns wordsSize*2, so if you need the item size you can write T[0].sizeof.

Why do you use so many underscores?
Bye,
bearophile


More information about the Digitalmars-d mailing list