Version 0 of tcl-null

Updated 2006-09-23 01:48:44

Arising from a discussion (on tkers chat about the denotational semantics of tcl, the concept of tcl-null was proposed.

MS offers this pragmatic approximation of tcl-null:

   set cmds [info command]
   rename catch _catch
   rename rename _rename
   foreach c $cmds {_catch {_rename $c {}}}
   _rename _catch {} 
   _rename _rename {}

but notes that namespaces also have to be cleaned up.

tcl-null Game

Starting with this as a base, the game is to come up with minimal subset of built-in commands which provide a useful (if not exactly usable) language from which many of the facilities of tcl can be built.

One such set is apply set uplevel list lindex. This resembles the minimal set of lisp functions necessary to construct classic lisp: (eval) (cond) (lambda) (quote) (car) and (cdr) from which McCarthy could construct/emulate classic-lisp.


Category Concept