Johnny Yip
2004-07-09 03:41:19 UTC
Hi,
From the spec
"This statement consists of the keyword return optionally followed by
an expression"
Looking at the production for returnStmt:
returnstmt ::= RETURN expr;
Since expr is non nullable, I cannot put "return;" in my SL code
Should returnstmt be
returnstmt ::= RETURN expr | RETURN;
instead?
Thanks,
Johnny
From the spec
"This statement consists of the keyword return optionally followed by
an expression"
Looking at the production for returnStmt:
returnstmt ::= RETURN expr;
Since expr is non nullable, I cannot put "return;" in my SL code
Should returnstmt be
returnstmt ::= RETURN expr | RETURN;
instead?
Thanks,
Johnny