[Issue 438] Compiler allows returning value from void function
Sean Kelly
sean at f4.ca
Wed Oct 18 06:13:45 PDT 2006
Brad Roberts wrote:
> > http://d.puremagic.com/issues/show_bug.cgi?id=438
>
> Can you point to where this is documented in the language spec and maybe
> some past threads discussing it? I'm really curious as to the reasons
> behind the choice.
I can understand accepting "return void" from a void function, as in
C++, but I would expect returning anything else to generate a compile error.
More information about the Digitalmars-d-bugs
mailing list