News for hackers. Stuff that matters.
Re:Don’t use C++ auto? Restricting auto is not the best deci... by memsom on Monday November 13, 2017 @10:03AM (#15686915)
That looks a lot like the old Pascal assignment vs equivalence operators. In Pascal (read Delphi) we had '=' for equality and ':=' for assignment. So:

x = 5 <-- a boolean statement, true if x equ 5

x := 5 <-- an assignment of the value 5 to the var x.

TBH, it's only like '=' vs '==' in C like languages. But it's easier to spot errors, as Pascal can never have a valid statement where the two are used in the wrong way.

There are no comments on this comment yet.