void main returning int - why compiles?

bearophile bearophileHUGS at lycos.com
Sat Jan 1 23:03:29 PST 2011


Manfred Nowak:

> _and_ foo() is not marked to have no side effects.

You are right, thank you for the quotation. So I have updated this, because it's not a bug:
http://d.puremagic.com/issues/show_bug.cgi?id=5399

I'm sure there's a rationale behind that special case in the D specs. Is someone able to explain? It looks like an unsafe corner case.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list