[Issue 11488] Disallow chaining of - operator

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 1 07:46:09 PST 2015


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

--- Comment #5 from Stewart Gordon <smjg at iname.com> ---
(In reply to Manfred Nowak from comment #4)
> 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.

What do you mean by "the ratio for allowing such constructs"?

>> 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.

I see.  But does Fortran have the FOR keyword?  I've just had a look and been
reminded that Fortran uses DO for for-loops - none of the online sources I've
found mention FOR as alternative syntax.  But it seems to me that the cause of
this was a failure to test the software properly - something that is needed
regardless of what language it is written in.

--


More information about the Digitalmars-d-bugs mailing list