ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-core
tcl-core
Re: [TCLCORE] Tcl-Core Digest, Vol 24, Issue 5
by Will Duquette other posts by this author
May 6 2008 4:58PM messages near this date
Re: [TCLCORE] Tcl-Core Digest, Vol 24, Issue 5 | Re: [TCLCORE] Tcl-Core Digest, Vol 24, Issue 5
On May 6, 2008, at 11:16 AM, Arnulf Wiedemann wrote:
>  Itcl has a set of variables for every object (all variables of all  
>  classes of
>  that object) and uses a variable resolver to get the object specific  
>  set of
>  variables (C-Code !!). Also variables with the same name in  
>  different classes
>  are handled as different variables, depending on the namespace (==  
>  class) the
>  method using it is runninng. Every method gets the classes namespace  
>  where
>  the method is defined as the current namespace when calling it.
> 
>  I hope that helps, if there are further questions please let me know.

Let me see if I understand.  Suppose we have class "animal" with
subclass "cat", each of which have variables:

animal:
    variable a
    variable b

cat:
    variable c

And we have an instance of "cat", called "sylvester".  In sylvester's
methods, we can use variable "c" without declaration; and we can
use variable "a" and "b" if we qualify them with the  
namespace ::animal::.

Is that right?

Will

------------------------------------------------------------------
        will -at- wjduquette.com      | Catch our weblog,
http://foothills.wjduquette.com/blog | The View from the Foothills



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Twylite
Will Duquette
Kevin Kenny
Kevin Kenny
Will Duquette
Arnulf Wiedemann
Will Duquette
Kevin Kenny
Donal K. Fellows
Twylite
Larry W. Virden
Twylite
Gustaf Neumann
Larry McVoy
Gerald W. Lester
Vasiljevic Zoran
Larry McVoy
Gerald W. Lester
Larry McVoy
Tomasz Kosiak
Gustaf Neumann
Donal K. Fellows
Daniel A. Steffen
Donal K. Fellows
Daniel A. Steffen
Donal K. Fellows
Donal K. Fellows
Daniel A. Steffen
Gerald W. Lester
Vasiljevic Zoran
Arnulf Wiedemann
Tom Krehbiel
Vasiljevic Zoran
Donal K. Fellows
Gustaf Neumann
Brian Griffin
Gustaf Neumann
Donal K. Fellows
Gustaf Neumann
Kristoffer Lawson
Daniel A. Steffen
Twylite
Donal K. Fellows
Will Duquette
Donal K. Fellows
Will Duquette
Arnulf Wiedemann
dgp
Donal K. Fellows
Arnulf Wiedemann
Twylite
Will Duquette
Twylite
Donal K. Fellows
Stefan Sobernig
Donal K. Fellows
Stefan Sobernig

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved