home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 June / PCWorld_2007-06_cd.bin / multimedia / ppsee / PPSeeSetup.exe / lib / bsh-commands-2.0b4.jar / bsh / commands / unset.bsh < prev    next >
Text File  |  2005-05-23  |  387b  |  17 lines

  1. /**
  2.     "Undefine" the variable specifed by 'name' (So that it tests == void).
  3.     <p>
  4.     <em>Note: there will be a better way to do this in the future.  This is 
  5.     currently equivalent to doing namespace.setVariable(name, null);</em>
  6. */
  7.  
  8. bsh.help.unset = "usage: unset( name )";
  9.  
  10. void unset( String name ) 
  11. {
  12.     if ( arg == null ) // ???
  13.         return;
  14.  
  15.     this.caller.namespace.unsetVariable( name );
  16. }
  17.