Variable write protection

From: George <jirka_at_5z.com>
Date: Mon, 18 Oct 1999 21:22:49 -0700

I've added a protection of global variables/functions to the CVS genius, what
happens is that all system functions are "protected" so that you can't
overwrite them easily. You can still just unprotect them if you really need
to. This is only done if you are modifying a global variable, in local
contexts (such as in a function) you can overwrite even protected variables.

This is important as stuff like

sum=1;while something do sum=sum+blah

won't work as sum is a protected function, (if you did the above you'd
actually nuke the system sum function). You can still do this inside a
function, just not on the command line. You can however just

unprotect("sum"); sum = 1

and that will go through

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:
          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
Received on Mon Oct 18 1999 - 21:22:59 CDT

This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:00:02 CDT