[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtcl-user
Subject:    Re: [vtcl-user] Real silly question
From:       Damon Courtney <damon () your ! unreality ! com>
Date:       2003-11-20 15:49:43
[Download RAW message or body]

> Really?
> 
> Why can't you just say:
> 
> set ::foo 1
> set ::bar 2
> 
> and then use them as
> 
> puts $::foo
> set mycode::var $::bar
> 
> or whatever?  I really prefer to see people using the $::variable notation,
> getting people used to using namespaces - see http://wiki.tcl.tk/namespace
> for more details.

    True, but in this case, it looked to me like the user didn't have
an understanding of global variables.  So, I thought I'd show him the
global command. 0-]  I, personally, use the above method in most cases
as well.

D



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
vtcl-user mailing list
vtcl-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vtcl-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic