On 4/25/12, Stewart Gordon <smjg_1...@yahoo.com> wrote: > So you think that > > import std.stdio; > void main() { > int a, b; > a + b; > return; > writefln("Hello, world!"); > } > > should generate no errors or warnings whatsoever?
I'm really only talking about: void a() { int x; } And of course: void a() { bool state; ... if (state) { } } I'd like the warnings to be individually selectable, just like in GCC. Btw, here's a trick question, should the compiler warn about this case? void main() { new Foo(); // or even Foo foo = new Foo; } :p