Re: brand new to tcl; newbie question



chedderslam wrote:
Yes, I had looked through that. I didn't see any sections on
functions. BTW, what is the proper term for a "proc"? Is it a
function or a procedure?

It's a command. Everything is a command.

The subset of commands created by the [proc] command are procedures,
or procs, if you like.

In Tcl's vocabulary, "function" refers only to things like the atan()
function in this expression:

set pi [expr {4*atan(1)}]

--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@xxxxxxxx Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
.



Relevant Pages

  • Re: Procedure or function has too many arguments specified
    ... attaching the renamed proc. ... DELETE FROM Agency WHERE AgencyID = @AgencyID ... SELECT/INSERT/UPDATE and DELETE commands specified. ... controls twice in the parameter configuration dop-down. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Silent overriding of the command (reopened)
    ... >> commands, it's a fairly simple matter to confine them to a modified ... which is to make Tcl a better product for all potential users. ... that call pfoo, after you've had to `proc pfoo2` to fix the `pits`... ...
    (comp.lang.tcl)
  • Re: Dict sharing vs. duplication
    ... each value that is passed as an argument to a proc: one by the caller, ... one by the proc itself. ... features of Tcl is that all commands are equal, ... But [dict] may actually improve the situation because a dict name will ...
    (comp.lang.tcl)
  • Re: brand new to tcl; newbie question
    ... BTW, what is the proper term for a "proc"? ...
    (comp.lang.tcl)
  • Re: brand new to tcl; newbie question
    ... BTW, what is the proper term for a "proc"? ... Thank you for the resource. ...
    (comp.lang.tcl)