Re: Tcl (Itcl) and default parameters/arguments
- From: "Bob Techentin" <techentin.robert@xxxxxxxx>
- Date: Tue, 30 Aug 2005 08:30:06 -0500
"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/
.
- References:
- Tcl (Itcl) and default parameters/arguments
- From: MH
- Re: Tcl (Itcl) and default parameters/arguments
- From: Bob Techentin
- Re: Tcl (Itcl) and default parameters/arguments
- From: Don Porter
- Tcl (Itcl) and default parameters/arguments
- Prev by Date: Re: installing BLT 2.4z
- Next by Date: Re: writing to a starpack
- Previous by thread: Re: Tcl (Itcl) and default parameters/arguments
- Next by thread: .text search unexpected match
- Index(es):
Relevant Pages
|