Thread: Canvas Problem
View Single Post
Old 12-05-2012, 01:15 AM   PM User | #25
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,237
Thanks: 59
Thanked 3,998 Times in 3,967 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Quote:
Originally Posted by donna1 View Post
I really dont like this ===

I dont agree with even the two distinctions of = and ==
That caused me loads of bugs last week before I realised they are completely different

Another stupid idea from someone, who has probably wasted combined millions of hours in errors since
So presumably you would like the PASCAL solution better?

Pascal uses := for assignment and = for comparison.

And it's just as easy there to make the mistake of using = when you meant := as it is to make the JavaScript/Java/C/C++/C#/PHP (and other languages!!!!) mistake of using = when you meant ==.

If you REALLY want confusion, use BASIC, which only has =. And what do you think
Code:
    A = B = C = 7
means in BASIC??

HINT: A will get a value of FALSE. Probably.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is online now   Reply With Quote