Allocating a wstring on the stack (no GC)?

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Wed May 7 11:45:09 PDT 2014


Meta:

> But you should avoid slicing the static array unless it's via 
> arr.dup.

Slicing fixed size arrays is often necessary, because many Phobos 
functions don't accept fixed size arrays, they force you to lose 
the compile-time knowledge of the length.

Bye,
bearophile


More information about the Digitalmars-d mailing list