Re: Where to find a Tcl command?



On Jul 30, 5:19 pm, mike.hfzh...@xxxxxxxxx wrote:
Hi, I am a newbite of TCL, I am trying to access TCL commands, for
example, I am tring to locate a command "puts" ,but I can not find it
in any Tcl folder,anyone can let me know the clue about it?

There are several places you have to look to locate code behind a Tcl
command.

1. The source code for Tcl itself. There is a body of C code which
implements a majority of the basic Tcl commands.

2. files in $auto_path - some of these will be in the tcl script
language, and some of these will be written in some compiled language.

3. In the case where someone has implemented additional tcl commands
in C (TclX, expect, etc.), then you will need to get the source code
distribution of that command.

4. In some cases, the source code isn't easily available. If you are
using some application which uses Tcl, it may have implemented Tcl
commands but chosen not to make the source available.



.



Relevant Pages

  • ANN: AOLserver 4.5.0 released!
    ... On behalf of the AOLserver Team, I have the honor of announcing the ... AOLserver 4.5.0 is a major upgrade including several new Tcl commands, ... AOLserver is America Online's Open-Source web server. ... the "ns_zlib" command for compressing and uncompressing ...
    (comp.lang.tcl)
  • Tcl-URL! - weekly Tcl news and links (Mar 5)
    ... GRIDPLUS2 is a Tile based version of GRIDPLUS. ... *) New "gpselect" command to select a tablelist row or tree node. ... Some people take their license issues very personal indeed;-) (and ... Word documents via Tcl and tcom - ...
    (comp.lang.tcl)
  • Re: Core commands as ensembles...
    ... command that does much the same as [namespace code], ... TCL as their scripting/console engine. ... home-brew bits and pieces, in which I will use TCL in any way that I ...
    (comp.lang.tcl)
  • Re: is tcl a reasonable alternative to unix shell scripts?
    ... Tcl has a library of "common" functions and utilities known as "tcllib". ... That said, the Tcl core does contain *many* file related commands, most of which are collected under the "file" ensemble command. ... So, check out "file" and its many sub-commands in the standard Tcl man-pages for most of the built-in file support, and take a look at the "fileutil" module of tcllib for other higher-level file utilities. ...
    (comp.lang.tcl)
  • Re: Can Ruby read emails?
    ... command, and Ruby will read it and exacute that command. ... I actually wrote a system using Tcl some years back which used ... e-mail to "move" a software agent from one host to another. ...
    (comp.lang.ruby)