A naive question

Ned Konz ned at bike-nomad.com
Thu Jun 27 19:52:15 UTC 2002


On Thursday 27 June 2002 12:39 pm, Stephane Ducasse wrote:
> Hi
>
> I wanted to show the difference between
>
>
> 50 at 60 + 200 at 400 a B3DVector3(250.0 260.0 400.0)
>
> and
>
> (50 at 60) + (200 at 400)
>
>
> 50 at 60 + 200 at 400
>
> I was thinking that as @ and + are both binary we evaluate the
> expression from left to right
> and I was thinking that the result would be decomposed as follow

50@(60 +200) => aPoint 50 at 260 (using Number>>@)
(50 at 260) @ 400 => aB3DVector3 50 at 260@400 (using Point>>@)

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list