- May
- 13,547
- 197
In many cases, using a one-line DO without a closing parenthesis will give an error.
If I replace @random (above) with the plugin @mrand, I get no error message.
There's nothing special about @random and @mrand. Any built-in variable function used in place of @random will produce the error message. And any plugin variable function will suppress the error message. The same seems true of internal _VARIABLE vs. plugin _VARIABLE.
Why do they behave differently?
Code:
v:\> do i=1 to 2 ( echo %@random[0,1]
Usage : DO [n | FOREVER]
If I replace @random (above) with the plugin @mrand, I get no error message.
Code:
v:\> do i=1 to 2 ( echo %@mrand[0,1]
v:\>
There's nothing special about @random and @mrand. Any built-in variable function used in place of @random will produce the error message. And any plugin variable function will suppress the error message. The same seems true of internal _VARIABLE vs. plugin _VARIABLE.
Code:
v:\> do i=1 to 2 ( echo %_time
Usage : DO [n | FOREVER]
v:\> do i=1 to 2 ( echo %_npids
v:\>
Why do they behave differently?