Show
Ignore:
Timestamp:
08/06/05 23:00:58 (3 years ago)
Author:
Stevan
Message:

Perl6::MetaModel? - (p5)
* $?CLASS now returns the ::Class object
* all methods and attributes are now associated with the ::Class object

instead of just the class name

* improved the name of ::get_obj_id to ::get_P6opaque_instance_id so that

no one will try to use it :P

* also added ::get_P6opaque_instance_class to peek into the class slot

(needed this for submethods)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • perl5/Perl6-MetaModel/lib/Perl6/Method.pm

    r6089 r6094  
    3737        $method = bless sub {  
    3838            unless (ref($_[0]) eq 'FORCE') { 
    39                 return ::next_METHOD() if $_[0]->[0]->{class} ne $associated_with;  
     39                return ::next_METHOD()  
     40                    ## XXX 
     41                    # this should not be accessing either the  
     42                    # instance_data->name slot, but we cannot 
     43                    # do anything about it for now ... 
     44                    if ::get_P6opaque_instance_class($_[0]->[0]) ne $associated_with->{instance_data}->{name};  
    4045            } 
    4146            $old->($_[1]);