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 through X rays
by Donal K. Fellows other posts by this author
May 29 2007 2:14AM messages near this date
Re: [TCLCORE] Tcl through X rays | Re: [TCLCORE] Tcl through X rays
Andreas Leitgeb wrote:
>  I'm thinking about a different approach to stack-variables:
>  
>  Explicitly declare stack-variables as such, and for these, upvar
>  from called procedures just won't work, neither does adding traces
>  to such variables, nor would these variables be visible to
>  [info vars] (not even in the same procedure).

Not good. But what you could do instead is to define a new type of
variable record that keeps the actual storage space for the variable's
contents on the stack (and which [trace] will refuse to touch). You
could probably make that work fairly easily, and the variable records
would be just one more thing generated during compilation. After all,
that's pretty much what we do right now anyway, except that the storage
space is currently a C array of standard Var structures. Since all
access to variables is through a pretty small API (except in TEBC)
making the code work with this is practical.

>  I'm sure there exist still more problems, afterall this is just
>  brainstorming and not a TIP (yet, not even for 9.0) :-)

;-)

Donal.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Alexandre Ferrieux
Donal K. Fellows
Alexandre Ferrieux
Mo DeJong
Alexandre Ferrieux
Mo DeJong
Jeff Hobbs
Andreas Leitgeb
Donal K. Fellows
Alexandre Ferrieux
Larry McVoy
Donal K. Fellows
Donal K. Fellows
Alexandre Ferrieux
Miguel Sofer
Rna020
Donal K. Fellows
Donal K. Fellows
Gerald W. Lester
Donal K. Fellows

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved