[PROPOSAL] Disallow // and \\ in Slang code (was: Re:
Squeakarcheology - quo vs. //)
Bert Freudenberg
bert at impara.de
Wed Apr 7 19:53:53 UTC 2004
Am 07.04.2004 um 20:48 schrieb Dan Ingalls:
>> a) To more easily remember the names (I find #quo: and #rem:
>> impossible to
>> remember) let's define #div: and #mod: instead as an extension for
>> VMMaker
>> and fix the code to consistently use #div: and #mod:. This allows to
>> *define* the meaning of division in whatever way we decide.
>
> It seems simpler just to stick with (and enforce) quo: and rem: in the
> Interpreter. No new names (will add to the confusion, even if it
> helps some people), simple error if you use // or \\.
Andreas thought that new selectors would allow us to model whatever the
underlying platform uses without influencing the rest of the system,
which would allow some experimentation.
>>> What this buys us is that we can rely on the simulator doing the same
>>> as the Smalltalk code. Which is important, IMHO.
>>
>> I think it's more than that - I think it's critical.
>
> I agree. It's a terrible bug.
> If you feel strongly about adding new names, go ahead.
I'm fine with either way ...
- Bert -
More information about the Squeak-dev
mailing list
|