Is Transcript's English orientation a plus or minus?

Mark Wieder mwieder at ahsoftware.net
Mon Feb 9 23:36:33 EST 2004


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
 mwieder at ahsoftware.net



More information about the use-livecode mailing list