Transcendental Numbers

Hamish (DP) Harvey dh4180 at bristol.ac.uk
Fri Jan 30 23:20:06 UTC 1998


A minor reorganisation and some small changes let it file in. If it works
properly I still don't know, though matrix multiplication looks OK. One
thing which has come up, though: several methods use local variables in
blocks thus:

aNumber isComplex
	ifTrue:
		[| u v |
		u := ...snip...

which squeak doesn't like. It reckons there should be a right bracket
where the | opening the local variable section is. Is there a reason for
this? I haven't used Smalltalk for a couple of years, and have just come
back after finding Squeak on a web crawl, so I don't yet feel up to
delving too deeply for the answer.

> Double-dispatching was faster in VisualWorks than coercion was.  It
> seems a lot more elegant to me, as well.  Further, it works
It does indeed. Smalltalks handling of arithmetic always struck me as a
weak point. 

Cheers,
Hamish





More information about the Squeak-dev mailing list