Rahul
2004-06-30 04:02:10 UTC
Is such an expression allowed??
if (a*!b+c) then
endif;
Since we are not doing any type checking, this is a valid boolean expression
.Thus, as long as ! is followed by a valid identifier, boolean (true/false)
or function call should it be picked up? Similarly with Unary Minus :
if(a*-b+c) then
endif;
Is this allowed as well? Is this a symantic or a syntactical error and in
this assignment are we supposed to pick it up or not? Thank You.
Rahul Jagtiani
if (a*!b+c) then
endif;
Since we are not doing any type checking, this is a valid boolean expression
.Thus, as long as ! is followed by a valid identifier, boolean (true/false)
or function call should it be picked up? Similarly with Unary Minus :
if(a*-b+c) then
endif;
Is this allowed as well? Is this a symantic or a syntactical error and in
this assignment are we supposed to pick it up or not? Thank You.
Rahul Jagtiani