How about :
proc nop {args} {}
I've used this in several places, and it works fine.
--
-joe (jfr...@rdrc.rpi.edu)
glv> Petri Aukia writes:
>> > Now it seems I'd need a command as small as possible with no
>> side-effects. This would in fact be an equivelant to the NOP -command
>> in assembly language.
glv> This makes a nice no-op:
glv> while 0 {}
glv> You can also define one that's a little more self-documenting:
glv> proc nop {} { return "" }
glv> Both have the same effect: they do nothing and return an empty string.
glv> The first one is just a tiny bit faster.
Why not use ";"?
bind $win <whatever> {;}
Tom
--
tro...@cns.caltech.edu
"In a riddle whose answer is chess, what is the only prohibited word?"
I thought a moment and replied, "The word chess".
-- Jorge Luis Borges
This makes a nice no-op:
while 0 {}
You can also define one that's a little more self-documenting:
proc nop {} { return "" }
Both have the same effect: they do nothing and return an empty string.
The first one is just a tiny bit faster.
---glv
bind $window <key> { }
rather than
bind $window <key> {}
--
Jay Sekora j...@it.bu.edu
BU Information Technology (MIME ok)
111 Cummington Street
Boston, MA 02115 +1 617 353 2780