Craig.Latta at NetJam.ORG
Tue Nov 10 19:14:52 UTC 1998
> > > 5 kilogram meters per second squared
> Actually, in context, squared associates just with the
> immeadiately leftmost unit.
Sure, and the thing answered by (5 kilogram meters per second) knows this also.
> As for #per, I think you are underestimating the amount of funkiness
> required to pull this off given Smalltalk semantics.
Not at all. >>per could answer an instance of a new class called "CompositeUnit" or somesuch, which performs dimensional analysis algebra. It could have a "numerator" of (5 kilogram meters), and a "denominator" which is set by the ensuing >>second. I think it's quite doable.
> > I think there's a fair way to go before it gets rediculous. :) I like
> > it so far.
> I think we've run the only traffic light in the Ridiculous town limits.
This is nothing. :)
> > Smalltalkers do: [:it | All with: Class, (And love: it)]
> I tried evaluating this in Squeak.... It corrected it to:
> Smalltalk do: [:it | Url with: Class, (AbstractSound leave: it)]
> I particularly liked the way Squeak corrected #love: to #leave:
> I wonder if the system is trying to tell me something.
heh... 'reminds me of the old Stupid Unix Shell Tricks, where the shell would say amusing things in response to "make love" ("don't know how to make love. Stop."), "gotta light?" ("gotta: no match"), "whois god" ("god does not exist"), etc., etc.
> Is there something I should file in first :-?
Obviously it's a silly contrived expression. But if you add the corresponding contrived globals and method then it runs, which I find mildly amusing.
composer and computer scientist
craig.latta at netjam.org
latta at interval.com
Smalltalkers do: [:it | All with: Class, (And love: it)]
More information about the Squeak-dev