[Xotcl] renaming a instproc

Kevin Van Workum vanw at sabalcore.com
Mon Aug 16 15:36:03 CEST 2010


How do I rename a Class instproc? For example:

Class T -parameter { {msg "Hello world!"} }
T instproc hi {} {
    puts [my msg]
}
T instparametercmd msg

T t
t hi

t msg "Good Bye!"
t rename hi bye
t bye


Also, what's the difference between using "instparametercmd" and
"parametercmd" in the example above?

Thanks,

Kevin

-- 
Kevin Van Workum, PhD
Sabalcore Computing Inc.
Run your code on 500 processors.
Sign up for a free trial account.
www.sabalcore.com
877-492-8027 ext. 11


More information about the Xotcl mailing list