Re: Where to find a Tcl command?



mike.hfzhang@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? thanks.

"puts" is one of the built in commands (unless your code has redefined it).

Tcl comes with man/help pages for all of the built in commands, so if what you are attempting to do is figure out how to use puts -- look there.

--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.



Relevant Pages

  • Re: TCL in MFC App
    ... > i use this command, TCL will give a error message, ... Sounds like your C program that embeds Tcl is not establishing the ... > "puts" command output? ... Sounds like maybe you don't want to write to the stdout channel ...
    (comp.lang.tcl)
  • Re: TCL in MFC App
    ... this is regarding to using "puts" command. ... >"cannot find channel named stdout". ... How can i print in MFC Edit box the TCL ...
    (comp.lang.tcl)
  • How do I determine when another program is no longer outputting to Tcl?
    ... I am attempting to manipulate another program with Tcl and pipes ... pipe, the Tcl process will pause infinitely while waiting for output ... The fileevent command is not ... puts "error reading $f: $result" ...
    (comp.lang.tcl)
  • Re: Tcl the misunderstood
    ... understanding the power of the 'after' command. ... On the wiki, you can ... those "Tcl is different" pages that goes like: ... after 500 {puts different} ...
    (comp.lang.tcl)
  • Re: Tcl the misunderstood
    ... "a Tcl list is always a valid Tcl command!". ... The example "puts Hello World" was an invalid command, ... It is an invalid invocation of the default definition of "puts" but only because "puts" imposes constraints on its arguments. ...
    (comp.lang.tcl)