As Dar points out here, the "=" operator can easily be overloaded. The
reason that C implements the "==" operator for comparisons is because
C also lets you do something pretty screwy with assignments:

if (c==12) is a comparison between c and 12
if (c=12) assigns 12 to c and then takes the result of the assignment

When C programmers really want to get obscure they will code something
like

if (c = getvalue() == getstring())

As long as this syntax isn't allowed in Transcript, then there
shouldn't be a problem with supporting both

put 12 into c
and
c = 12

-- 
-Mark Wieder
 [EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to