Temporary variables

Pierre Roy pierre at limbo.create.ucsb.edu
Wed Jun 16 20:03:35 UTC 1999


> Pierre> Is there any patch that allows to declare as many temporary
> Pierre> variables as one wants in a method?
>
> A lot of temporary variables is almost always a sign of mis-design.
> And, temps are indexed in a limited bitwidth space, so the whole VM
> would have to change if this number were exceeded.

Hi Randal,

Sorry, but the mis-design is to have a compiler that allows only 25 (or
something
like that) tempos to be defined ;-)

There are situations that require more than 30 tempos.
A few examples:
Music representation: There 35 pitch-classes
Crypting problems solving: There are 26 letters in latin alphabet
etc.

I can send you tons of methods that needs to declare more then 30
tempos, and
that cannot be implemented otherwise (unless you want to use lists or
collections
for every purpose, but in this case, why use Smalltalk?).

> Just what exactly is the code you have where you want a single method
> to have tens or hundreds of temps?





More information about the Squeak-dev mailing list