Using bsh-2.0b4.jar
 
This case works
 
bsh % foo() { print("hi");}
bsh % foo() { print("bye"); }
bsh % foo();
bye
 
 
This case fails

bsh % foo( elem ) { print("a");}
bsh % foo( elem ) { print("b"); }
bsh % foo(1);
a                ----> SHOULD BE  "b"

 
 
Any ideas ? Am I doing something wrong here ?
Thanks !
 
 
-----------------------------------------------------------
David A. Lee
dlee@calldei.com 
http://www.calldei.com