Safer casts

Ary Borenszweig ary at esperanto.org.ar
Tue May 13 03:57:15 PDT 2008


Janice Caron escribió:
> 2008/5/13 Yigal Chripun <yigal100 at gmail.com>:
>>  Good Points! I thought about the IDE issue, but I wasn't sure how the
>>  IDE handles this.
> 
> I don't have an IDE, but in my text editor,
> 
>     "a < b"
> 
> is colored like a string, but
> 
>     q{ a < b }
> 
> is colored like D code throughout. So I can choose my quoting method
> depending on how I want my code colored. This works, not because my
> IDE is smart, but precisely because it isn't! It doesn't realise that
> q{...} is a string, so it gets colored like code.

That's just because normally most editors are configured so that "" and 
'' are colored as strings, so Walter chose an uncommon combination that 
won't get colored. But Descent colors q{...} as a string because it 
understands D and because... because it *is* a string! :-)

Also, same comment as Yigal: the coloring is the least important feature 
in my previous post.



More information about the Digitalmars-d mailing list