Originally Posted by donna1
... a statement like A=B=C=7
doesnt make any sense anyway ...
First of all, it *does* make sense.
And it means
A = ( ( B == C ) == 7 )
which means that A will always end up being false, because you are comparing a boolean (true/false result of comparing B and C) to an integer. But that doesn't mean the construction is useless. I purposely created a pathological case.
in my language you couldnt have a statement like A=B=C=7
When you get a few years experience, if you really want to create a braindead language that doesn't allow that, you can. Just don't expect anybody to then use it.