Re: Tcl (Itcl) and default parameters/arguments



"Don Porter" <dgp@xxxxxxxxxxxxxx> wrote
>
> Rather than attempt to construct a VERY_UNLIKELY_DEFAULT,
> you ought to take the [llength [info level 0]] to determine how many
> arguments were passed.



Oooh, that's a cool trick, Don. A nice compromise between default
parameters and the (almost too general) args mechanism.

Bob
--
Bob Techentin techentin.robert@xxxxxxxxxxxxxx
Mayo Foundation (507) 538-5495
200 First St. SW FAX (507) 284-9171
Rochester MN, 55901 USA http://www.mayo.edu/sppdg/



.



Relevant Pages