Re: brand new to tcl; newbie question
- From: chedderslam <chedderslam@xxxxxxxxx>
- Date: Tue, 29 Apr 2008 13:06:51 -0700 (PDT)
On Apr 29, 2:52 pm, Glenn Jackman <gle...@xxxxxx> wrote:
At 2008-04-29 03:13PM, "Bryan Oakley" wrote:Yes, I had looked through that. I didn't see any sections on
chedderslam wrote:
I am only a couple of days into tcl and XOWiki. I am trying to call a
basic function but can't figure out how to call one.
proc test {} {
return "text to display"
}
proc content {} {
set somevar test()
return "$somevar"
}
How do you call a function?
i.e. in "set somevar test()" i want to call test...
Thank you.
set somevar [test]
You might also want to look at the Tcl Tutorial:
http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html
--
Glenn Jackman
"If there is anything the nonconformist hates worse than a conformist,
it's another nonconformist who doesn't conform to the prevailing
standard of nonconformity." -- Bill Vaughan
functions. BTW, what is the proper term for a "proc"? Is it a
function or a procedure?
Thank you.
.
- Follow-Ups:
- Re: brand new to tcl; newbie question
- From: EL
- Re: brand new to tcl; newbie question
- From: Donald G Porter
- 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: Glenn Jackman
- brand new to tcl; newbie question
- Prev by Date: Re: brand new to tcl; newbie question
- 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
|