#773: Can't override vtables of a PMC from PIR
---------------------+------------------------------------------------------
Reporter: coke | Owner:
Type: bug | Status: new
Priority: blocker | Milestone:
Component: none | Version: 1.2.0
Severity: medium | Keywords:
Lang: tcl | Patch:
Platform: |
---------------------+------------------------------------------------------
Comment(by allison):
The general rule is that if you didn't define the class (or create it by
subclassing), you can't expect to be able to override its vtable functions
or methods. It's not just a matter of whether the class was defined in C
or in PIR, some classes can't be modified after they're instantiated, some
languages don't allow class modification after the original definition at
all, and the class you're working with may be from a different HLL or
namespace.
If a particular language wants their core types to be overridden this way,
they can add the checks into their vtable functions. It's just "special
behavior for specific types" instead of "behavior every class should
support".
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/773#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets