[Issue 11488] Disallow chaining of - operator
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Feb 1 07:16:00 PST 2015
https://issues.dlang.org/show_bug.cgi?id=11488
--- Comment #4 from Manfred Nowak <svv1999 at hotmail.com> ---
(In reply to Stewart Gordon from comment #3)
> But how would such an expression find its way into real-world code in the
> first place?
I did show by example, that chaining "-" and "--" is not tolerable. An analog
example holds for "+" and "++". Its the burdon of the language designer to give
the ratio for allowing such constructs.
> In my mind,
I agree, that our thinking differs.
> Also, what does `FORTRAN "FORI=" Error` mean?
Maybe its an urban legend that made it into a university. According to that
university talk in a fortran-program the space between the `for' and the
index-variable `i' was lost. Thereby declaring and assigning the variable
`fori' instead of introducing a loop---with fatal consequences for a
space-ship.
--
More information about the Digitalmars-d-bugs
mailing list