Is this a bug or a feature?

Pelle Månsson pelle.mansson at gmail.com
Thu Jan 7 05:46:45 PST 2010


On 01/07/2010 02:04 PM, Daniel Murphy wrote:
> The following code compiles under dmd v2.037, no closing brace required.
>
> ---------------
> import std.stdio;
>
> void main()
> {
> 	while(true)
> 		writeln("Bug!");
> ---------------
>
> Bug, or feature for the extremely lazy?
I bumped into this myself the other day, I find it being quite a 
feature. If nothing else, it's kinda cool!



More information about the Digitalmars-d mailing list