Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#255 Undefined variable gets printed as void

open
nobody
General (151)
5
2006-03-14
2006-03-14
No

Assume that we have an undefined variable x

bsh % System.out.println(x);
// Error: EvalError: Undefined argument: x : at Line:
1 : in file: <unknown file> : ( x )

But if we print out this variable with another string:

bsh % System.out.println(x+" test string");
void test string

An undefined variable should not be printed as void.

Discussion