Re: How to get default values to parameters of class object member methods [incr tcl]
- From: Andrew Falanga <af300wsm@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 13:15:42 -0700
On Jun 29, 1:14 pm, Schelte Bron <nos...@xxxxxxxxxx> wrote:
Andrew Falanga wrote:
Thanks to all for helping fix my simple blunder. Now I've got
another
one and I'm not sure if there is a resolution. I've tried a few
different things, but nothing seems to be working. As well all
know, if a proc is to have a default value for a parameter, it's
defined something like this:
proc someproc { { param = foo } } {
# doing lots of important stuff
}
Something like that, but not exactly. It should be:
proc someproc { { param foo } } {
# doing lots of important stuff
}
And that will work for itcl methods as well.
Schelte.
--
set Reply-To [string map {nospam schelte} $header(From)]
Thanks. I'm hitting my head against my desk now and thinking I should
probably log off my computer and head home for the weekend while I
still have some dignity. I don't know what I was thinking when I
wrote this message. I knew that the syntax isn't:
proc someproc { { param = foo } } {
# stuff here
}
but
proc someproc { { param foo } } {
# stuff here
}
I really think I should pack it in for the weekend.
Andy
.
- References:
- Prev by Date: Re: TCL_evalFile
- Next by Date: Re: File r+ and w+ difference
- Previous by thread: Re: How to get default values to parameters of class object member methods [incr tcl]
- Next by thread: TCL_evalFile
- Index(es):