"MessyBlob" <nomail@nomail> wrote:
> > i = 0;
> > MySphere = sphere {
> > center = x*i;
> > radius = temp;
> > };
>
> You'd probably want new object properties to be write-only, so that names to the
> right of assignments in the "sphere { }" block can then refer to the outer scope
> (which makes the above code work as expected).
Then what if I want to do
modify MySphere {
center = x*i;
temp = temp*2;
}
?
Aside from that, consistency would suffer from using different name resolution
rules for lvalues (i.e. the left side of an assignment) and rvalues (i.e. the
right side).
Post a reply to this message
|