[Issue 509] [wd]char[1] does not convert to [wd]char

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 17 04:45:45 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=509





------- Comment #2 from deewiant at gmail.com  2006-11-17 06:45 -------
(In reply to comment #1)
> Why
> 
>     w = \r[0]
> 
> rather than
> 
>     w = '\r';
> 
> ?
> 

Because there's already an example of assigning that way ("w = 'b'"). This
example, in my humble opinion, is useful even if the [0] is added since it
shows how quotes around the \r aren't necessary.


-- 




More information about the Digitalmars-d-bugs mailing list