Forum OpenACS Q&A: Re: Problems defining procs

Collapse
Posted by Claudio Pasolini on
Here is a small example of how to dynamically define a proc:

# get/set the values
set day_values "aaa bbb ccc"
set myproc "
proc myproc {} {
puts \"The day's values are: $day_values\"
}
"
eval $myproc

The values get hardcoded into the proc.