Real name Mark Janssen (Tcl Chatroom nick: mjanssen). I have been using Tcl since 2004 and I love it.
There are several reasons I love Tcl:
Pages I contributed to
Random scribblings
In 8.5 Tcl could implement the command [cmd subcommand args] in three ways:
It seems it would be nice if the core commands (string, file, package etc.) could be implemented using either OO or namespace ensembles. This will allow for better introspection possibilities (e.g. cmd info commands) to list the valid subcommands. So IDE writers will not have to parse errors anymore to display possible completions. As a demonstration of the concept see the code below (requires Tcl 8.5)
package require XOTcl namespace import ::xotcl::* # wrap all procs that allow subcommands in a XOTcl object and hide the original # this has the advantage that $proc info commands can display subcommands interp alias {} dotcl {} interp invokehidden {} set procs_to_hide {file string package info namespace} foreach proc $procs_to_hide { interp hide {} $proc Object create $proc $proc set name $proc # define unknown in case we miss subcommands $proc proc unknown {args} { puts "XOTcl wrapper for '[my set name]' called with args: $args" return [dotcl [my set name] {expand}$args] } } file proc join {args} { return [dotcl file join {expand}$args] } puts [file join a b c] puts [file info commands]
[ Category Person ]