Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

default method, when no method found

7 views
Skip to first unread message

Ibotty

unread,
Nov 27, 2003, 6:56:53 PM11/27/03
to perl6-i...@perl.org
i am interested, if there is a method (for a PMC), that is automagically
called, whenever a called method is not existent.

i am sure, you have already thought about this, as this is a common feature
of many dynamic languages.

any pointer appreciated.

thx,
~ibotty

Leopold Toetsch

unread,
Nov 28, 2003, 3:26:08 AM11/28/03
to Ibotty, perl6-i...@perl.org
Ibotty <m...@ibotty.net> wrote:
> i am interested, if there is a method (for a PMC), that is automagically
> called, whenever a called method is not existent.

If you are speaking of vtable->method, yes - the method in default.pmc
is called.
If you are speaking of objects, there will be such a feature.

> thx,
> ~ibotty

leo

Ibotty

unread,
Nov 28, 2003, 4:51:38 AM11/28/03
to perl6-i...@perl.org
>> i am interested, if there is a method (for a PMC), that is automagically
>> called, whenever a called method is not existent.
>
> If you are speaking of vtable->method, yes - the method in default.pmc
> is called.

can a pmc override this method?

> If you are speaking of objects, there will be such a feature.

but is not currently?
well, no prob, if there will be this feature in time of release.

~ibotty

Leopold Toetsch

unread,
Nov 28, 2003, 6:58:19 AM11/28/03
to Ibotty, perl6-i...@perl.org
Ibotty <m...@ibotty.net> wrote:
>>> i am interested, if there is a method (for a PMC), that is automagically
>>> called, whenever a called method is not existent.
>>
>> If you are speaking of vtable->method, yes - the method in default.pmc
>> is called.

> can a pmc override this method?

There is delegates.pmc ("Delegate each and every function to parrot
bytecode") but its not integrated yet.

>> If you are speaking of objects, there will be such a feature.

> but is not currently?

Objects are under construction.

> ~ibotty

leo

0 new messages