[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] environments as prototypes

At 9:06 Uhr -0400 02.08.2006, James Harkins wrote:

Would this be for all pseudo-method calls or just those that override true methods defined in the class tree?

only the latter.

My solution in AdhocClass is to define certain methods in AdhocClass to pass the message on to the environment.
yes, EnvironmentRedirect does not yet do all the forwards, but already most of them. It would be good to check and add the required ones.

The drawbacks are clutter in the class def, and it does not dynamically adapt to new methods that might be defined in Environment or superclasses (admitting that it may not be technically possible to do that kind of dynamic adaptation).

yes, this is the problem - but on the other hand it does not break in intransparent ways when an old definition is used with a changed class tree.

Or, maybe a better question is -- do we know what the requirements are? That is, desired behavior for a given input? The requirements are clear for a method selector not defined in the class tree. What do we want it to do otherwise?

when you try to add such a method, it should throw an error.