LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Andrew Reid <andrew.reid@plug.cx>
  To  : Richard Russell <richard@yellowgoanna.com>
  Date: 06 Nov 2001 12:28:05 -0930

Re: Unsetting variables in Python

On Tue, 2001-11-06 at 23:33, Richard Russell wrote:

> > In just about every other language that I've coded in, there is an
> > unset() function of sorts that obliterates the variable that you pass
> > it, such that it is no longer available to be refered to.
> 
> wow -- only places I've ever seen that are "scripting" languages
> (shell, perl, etc)... I don't think I've ever seen it in a
> (traditionally) compiled language (yeah yeah, perl can be compiled,
> but you get the point about the distinction I am making)... I think
> most languages have namespaces pretty much defined by blocks of code
> and explicit namespacing, so while you can often declare a name in the
> middle of a block, once it's declared, it exists (but isn't
> neccessarily visible) until it goes out of scope...

Hmm, well, yes. I can't seem to think of an unset() command for C, and
I've tried to keep my hands clean of Java :-)

"Scripting" languages is more appropriate. It's probably possible in 
C -- just about anything is.

   - andrew

-- 
void signature(){
    cout << "Andrew Reid -- andrew.reid@plug.cx" << endl;
    cout << "Cell: +61 401 946 813" << endl;
    cout << "Quidquid latine dictum sit, altum viditur" << endl;
}

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page