I seem to be able to crash writefln

bearophile bearophileHUGS at lycos.com
Thu Mar 10 09:36:11 PST 2011


Ary Manzana:

> It works because it's a specialized syntax for foreach. Oh, and I think 
> in case statements you can use it too, but I don't remember if the first 
> was inclusive and the second exclusive, or both, or what. But... it just 
> works for those cases. For the rest you have to use iota...

Yes, it's a quite messy design. And Walter & Andrei seem to think it's OK.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list