Exact effects of returning Structs

Era Scarecrow rtcvb32 at yahoo.com
Fri Aug 27 13:23:48 PDT 2010


== Quote from Steven Schveighoffer (schveiguy at yahoo.com)'s article
> > array's (dynamic and otherwise) filled with 0's by default?
> No, arrays are filled with the .init value.  For char, that's 0xff.
> -Steve

 Ahh that's right. It's 0xFF which is a illegal character for UTF-8 encoding. That
does help explain why my asserts involving 0 to 9 kept failing, since my checks
were for 0x0, and 0x20.

 If i happen to duplicate the original problem i'll post back again.


More information about the Digitalmars-d-learn mailing list