Iterating over 0..T.max

Magnus Lie Hetland magnus at hetland.org
Thu Mar 10 04:42:13 PST 2011


On 2011-03-09 21:24:57 +0100, Kai Meyer said:

> I don't see how that works in dmd2, and I don't have much experience 
> with dmd1, so I'll admit that this may be different on dmd1.

Derp. I didn't mean bool -- I was talking about byte. (Which should 
make quite a bit more sense, given that I'm talking about a limit of 
256... :D)

And, for the record, I'm using DMD 2.052 (OS X).

Just replace bool with byte in your program, and it should compile. 
Sorry for the brain fart ;)

-- 
Magnus Lie Hetland
http://hetland.org



More information about the Digitalmars-d-learn mailing list