/jEdit/tags/beanshell-2-0b1/bsh/commands/unset.bsh
# · Unknown · 16 lines · 13 code · 3 blank · 0 comment · 0 complexity · 64de5b83bf1a637a9b861bdb16b71238 MD5 · raw file
- /**
- "Undefine" the variable specifed by 'name' (So that it tests == void).
- <p>
- <em>Note: there will be a better way to do this in the future. This is
- currently equivalent to doing namespace.setVariable(name, null);</em>
- */
- bsh.help.unset = "usage: unset( name )";
- void unset( String name )
- {
- if ( arg == null ) // ???
- return;
- this.caller.namespace.unsetVariable( name );
- }