Improving Compiler Error Messages
Walter Bright
newshound1 at digitalmars.com
Mon May 3 15:05:11 PDT 2010
Nick Sabalausky wrote:
> "Walter Bright" <newshound1 at digitalmars.com> wrote in message
> news:hrncpk$14t2$2 at digitalmars.com...
>> Michel Fortin wrote:
>>> That's an argument against returning the value of the last statement.
>>> It's not an argument about making the last semicolon optional, is it?
>> Yes, it is an argument against it. It means the semantics can vary
>> dramatically depending on whether a ; is present or not.
>
> But that's only true when the language, unlike D, has implicit returns,
> right?
Right. But D (and C, C++) do not have implicit returns, and so this syntax is
not right for them.
More information about the Digitalmars-d
mailing list