Notifications
Clear all
[Closed] Properties as variables.. how?
Dec 08, 2009 3:05 am
I’m not sure how to set up properties as variables. To keep things simple, take the following:
s = sphere()
r = radius
s.r
What would be the correct way to set up something along these lines?
2 Replies
Dec 08, 2009 3:05 am
s = sphere()
r = #radius -- needs to be a name or string literal
hasProperty s r
getProperty s r
?
-Johan