"Randal L. Schwartz" wrote:
> 
> Tony Olekshy wrote:
> >
> > Perl should be modified so that if C<$ISA::Search> (or equivalent)
> 
> Do you mean "$YOUR_PACKAGE::ISA::Search"
> which is in the package "YOUR_PACKAGE::ISA"?
> 
> This would be the first time (to my knowledge) that something would
> be in an unrelated package.  Remember... there is no necessary
> correlation between $A and $A::B as of yet.  Your proposal would
> breach that.

Oops, sorry.  That's what we do (aka get away with) in our little
generator module, but I can see that it doesn't scale well.

> Presuming the rest of the idea is deemed sound enough to implement
> (:-), I'd strongly suggest the variable name be something like
> $ISA_SEARCH or something like that, to keep it in the same package.

Hmm, what about %ISA{Search}?  Then, if we identify other meta-object
protocol hooks (or parameters) we could specify them via other entries
in %ISA.  Meanwhile, @ISA could stay the same.

I'm not too worried about the details at this point.  However, what I
would like is for a subset of Perl 6 to almost indistinct from Perl 5:
additions are ok, extensions are ok, but I'd rather not rewrite all
the Perl code in the world just to handle someone's idea of what Perl
should have been if they were in charge ;-)

I also would rather not be forced to use someone else's inextensible
definition of OO that is too simple or too complex for my needs.
Perl's got a good start on a very minimalist OO protocol.  Let's make
the minimal visible fixes we can to that, the maximal fixes to making
it efficient, and the necessary fixes to make it more easily and
compatabily extensible, so that multiple OO protocols can interoperate
in the same program.

Yours, &c, Tony Olekshy

Reply via email to