"David Williams" <david.williams@[EMAIL PROTECTED]
> wrote:
>
> Of course, it is easy to make BASIC pass parameters by value by writing
> them as arithmetic expressions, rather than single variables:
>
> CALL Routine (X + 0)
>
> Even if Routine changes the value of its input parameter, the value of
> X in the calling routine is unaltered. I don't think I have ever done
> this in practice, but I can see that it might sometimes be useful.
Actually, you usually don't need to go that far. QuickBASIC & QBASIC,
for example, appear to consider it an expression if it is enclosed in
parenthesis, like this:
CALL Routine (X)
--
Judson McClendon judmc@[EMAIL PROTECTED]
(remove zero)
Sun Valley Systems http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."


|