in reply to Re^2: [Parrot] Is there a class loader?
in thread [Parrot] Is there a class loader?

> What Perl are you thinking of that has these semantics? In Perl 5 at least, modules are not packages are not classes (are not files)!

This is perfectly why I wrote: "modules are packages are classes" or something along these lines...:-)

What I wanted to paraphrase is that there is nothing in Parrot that would enforce the rather exotic object model of Perl5. So, as far as I can tell you, Parrot does not implement an equivalent of %INC, which the OP objected. It is up to the language running on top of Parrot to implement something similar.

By the way, a nice use of the object system of Parrot can be found in the precious SDL bindings of Parrot. The code lives in $PARROT_ROOT/runtime/parrot/library/SDL.

rg0now

Replies are listed 'Best First'.
Re^4: [Parrot] Is there a class loader?
by gaal (Parson) on Feb 17, 2005 at 14:25 UTC
    I think you are confusing OOP with module loading. %INC has nothing to do with Perl's object model. Perl's object model is not "exotic" so much as it is lean, and thus a large part of it — indeed including the association of module and package with class — is given solely by convention. There is nothing in Perl that enforces the rather exotic object model you think Perl5 has. :-)