![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: My own control structures are slow
From: Christian Gollwitzer <auriocus@btcips73x1.cip.uni-bayreuth.de>
Date: Fri Sep 30 2005 - 12:39:08 CEST
Ulrich Schöbel wrote:
OK, so I modified the suggestion to:
proc MAP5 command {
if {[llength $locvars]==0} {set MAP_up ""}
set MAP_glob [list global]
if {[llength $globvars]==0} {set MAP_glob ""}
proc mapbody {} "$MAP_up
which seems to work now, BUT: I import every global variable, not just
I have the same thingy in C++ as a macro, defined as
#define MAP for (int y=0; y<512; y++) \
which is easy and efficient, since after preprocessing the compiler sees
Regards,
|