> 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.
Thanks,
Brad
Comment #3 by sean — 2006-10-18T08:15:17Z
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.