[Issue 7184] parse error on *(x)++

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 3 09:50:15 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=7184

--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to Simen Kjaeraas from comment #3)
> (In reply to RazvanN from comment #1)
> > The behavior is according to the spec, so I will close this as invalid. 
> 
> It's perfectly possible for the spec to be in error (there's even the spec
> keyword in Bugzilla). In this case, the code looks perfectly sensible for
> someone who doesn't know the spec in detail, and getting a compiler error
> like this is not expected.
> 
> Could the spec in this case be amended to allow the example code to compile,
> without breaking code elsewhere? I don't know. If you know it's impossible,
> please explain why, and close this bug again.

It's not that it is impossible, rather that it requires much effort to allow a
redundant use of ().

--


More information about the Digitalmars-d-bugs mailing list