Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

backquote in TCL

10 views
Skip to first unread message

ddd

unread,
Nov 7, 2008, 5:40:51 AM11/7/08
to
Hi,

do people use Hume Smith's backquote implementation for TCL?

see: http://wiki.tcl.tk/4899


I am interested in what cases developers actually use it.

yours

sisusimple

Arjen Markus

unread,
Nov 7, 2008, 6:09:27 AM11/7/08
to

I mostly use [string map] to do the various substitutions
necessarily for this sort of work. For instance:

proc print {x} [string [list MYPROG $myprog] {
puts "(MYPROG) value of x is $x"
}

to (lazily) make a print routine that prints the name
of my program.

The technique is very simple and elegant in my view.

Regards,

Arjen

0 new messages