What it the preferred method to write a class to a file?
Charles D Hixson
charleshixsn at earthlink.net
Mon Jul 24 13:34:12 PDT 2006
xs0 wrote:
>
>> P.S.: Is there a standard library routine for converting
>> between strings of length 4 and uint-s? If so I wasn't able
>> to find it. If not, I wasn't able to determine that it
>> didn't exist. (That would have made writing the sig more
>> efficient.)
>
> union {
> uint asUInt;
> char[4] asChars;
> }
>
> or something to that effect :)
For some reason when I tried that I was told that I was
using "illegal utf8 characters". But Jarrett's approach
worked fine.
More information about the Digitalmars-d-learn
mailing list