Re: brand new to tcl; newbie question
- From: chedderslam <chedderslam@xxxxxxxxx>
- Date: Tue, 29 Apr 2008 13:45:33 -0700 (PDT)
ok, I'll try to do a little better in phrasing my questions.
If the proc is named test, such as below:
---------------------------------------------------------------
proc test {} {
return "text to display"
}
proc content {} {
set somevar [test]
return "$somevar"
}
---------------------------------------------------------------
I get:
invalid command name "test"
while executing
"test"
(procedure "content" line 3)
::19493::payload->content
invoked from within
"[self]::payload content"
(snipped)
If I change the name of the proc to something else, like this:
---------------------------------------------------------------
proc myproc {} {
return "text to display"
}
proc content {} {
set somevar [myproc]
return "$somevar"
}
--------------------------------------------------------------
I get this:
::19493::payload
I hope I am being more clear.
.
- Follow-Ups:
- Re: brand new to tcl; newbie question
- From: Alexandre Ferrieux
- Re: brand new to tcl; newbie question
- References:
- brand new to tcl; newbie question
- From: chedderslam
- Re: brand new to tcl; newbie question
- From: Bryan Oakley
- Re: brand new to tcl; newbie question
- From: chedderslam
- Re: brand new to tcl; newbie question
- From: Donald G Porter
- Re: brand new to tcl; newbie question
- From: chedderslam
- Re: brand new to tcl; newbie question
- From: Donald G Porter
- brand new to tcl; newbie question
- Prev by Date: Re: glob behaviour changed in 8.4, documented?
- Next by Date: Re: brand new to tcl; newbie question
- Previous by thread: Re: brand new to tcl; newbie question
- Next by thread: Re: brand new to tcl; newbie question
- Index(es):
Relevant Pages
|