|
|
clipka wrote:
> I just checked this, to find that what the construct will actually do is:
>
> temp = new Object();
> temp.radius = 1;
> temp.position= [0,0,1];
> Sph = new Sphere(temp);
>
> This also matches what the ISO ECMAScript specification implies.
>
> So at the point e.g. the "position" property is set, it will still use the
> standard getter/setter mechanism of the basic Object type.
>
> Furthermore, it will not act on the Sphere object at all - it will just create
> yet another object that will be passed as one single parameter to the Sphere
> object.
Could you explain what the Sphere object is doing?
-Mike
Post a reply to this message
|
|