home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Shareware / Comunicatii / advwebrank / awr.msi / disk1.cab / bsh_1.2b6.jar / bsh / commands / unset.bsh < prev    next >
Encoding:
Text File  |  2002-05-26  |  381 b   |  16 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.     if ( arg == null )
  12.         return;
  13.  
  14.     this.caller.namespace.setVariable(name, null);
  15. }
  16.