brand new to tcl; newbie question



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.
.



Relevant Pages

  • Re: brand new to tcl; newbie question
    ... basic function but can't figure out how to call one. ... proc test { ... return "text to display" ... i.e. in "set somevar test()" i want to call test... ...
    (comp.lang.tcl)
  • Re: brand new to tcl; newbie question
    ... basic function but can't figure out how to call one. ... proc test { ... i.e. in "set somevar test()" i want to call test... ... standard of nonconformity." ...
    (comp.lang.tcl)
  • Re: brand new to tcl; newbie question
    ... basic function but can't figure out how to call one. ... return "text to display" ... i.e. in "set somevar test()" i want to call test... ... proc test { ...
    (comp.lang.tcl)