View · Search · Index
No registered users in community xowiki
in last 10 minutes

[Xotcl] renaming a instproc

From: Kevin Van Workum <vanw_at_sabalcore.com>
Date: Mon, 16 Aug 2010 09:36:03 -0400

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