byte to char safe?
Harry
harry at potter.com
Thu Jul 30 16:14:56 PDT 2009
Ary Borenszweig Wrote:
> Harry escribió:
> > Again hello,
> >
> > char[6] t = r"again" ~ cast(char)7 ~ r"hello";
>
> If you want the result to be "again7hello", then no. You must do:
>
> char[6] t = r"again" ~ '7' ~ r"hello";
>
> or:
>
> char[6] t = r"again" ~ (cast(char)('0' + 7)) ~ r"hello";
Hello Ary,
7 is data not string.
It makes own write function
need style data in char[]
Not sure if safe ?
thank you
More information about the Digitalmars-d-learn
mailing list