Re: Why foreach(c; someString) must yield dchar

2010-08-19 Thread Jonathan Davis
On 8/19/10, Kagamin s...@here.lot wrote: Jonathan M Davis Wrote: Considering that in all likelihood 99+% of the cases where someone is iterating over char, they really want dchar And when someone is iterating over byte[] or short[], they want long, right? Yeah, why not? The problem is

Re: String literals have only one instance?

2010-08-19 Thread Jonathan Davis
On 8/19/10, Rory Mcguire rjmcgu...@gm_no_ail.com wrote: Are all string literals that have the same value initialized to the same address? void main() { string same() { return This; } assert(This is same()); assert(This is This); } Can this be