[parrot/parrot] 55a3cc: [pmc] Object.invoke as vtable override: fix unstab...

GitHub noreply at github.com
Sat Nov 15 13:07:13 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot
  Commit: 55a3ccb2931e0b85c1f9f226774a2bebe6563bb1
      https://github.com/parrot/parrot/commit/55a3ccb2931e0b85c1f9f226774a2bebe6563bb1
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-11-15 (Sat, 15 Nov 2014)

  Changed paths:
    M ChangeLog
    M api.yaml
    M src/pmc/object.pmc
    M t/pmc/object-meths.t
    M t/pmc/parrotobject.t

  Log Message:
  -----------
  [pmc] Object.invoke as vtable override: fix unstable self heuristic

Change experimental usage of vtable overridden subs.
Always push self, it is always called in method semantics.
$P1($P1) is not needed and not stripped anymore.

Change t/pmc/parrotobject.t tests, and add t/pmc/object-meths.t tests.

Closes #1013. Thanks to Zefram


  Commit: 14271cb1a715b5040709974c6d268318764a7dcd
      https://github.com/parrot/parrot/commit/14271cb1a715b5040709974c6d268318764a7dcd
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-11-15 (Sat, 15 Nov 2014)

  Changed paths:
    M ChangeLog
    M t/pmc/object-meths.t
    M t/pmc/parrotobject.t

  Log Message:
  -----------
  [test] Clarify Object.invoke access to self

Add to tests that we always have access to self within
Object.invoke'd methods, even if not explictly passed.
This was one unhandled concern in http://trac.parrot.org/parrot/ticket/103
and fixed with GH #1013.


Compare: https://github.com/parrot/parrot/compare/a85bf3ddc8bb...14271cb1a715


More information about the parrot-commits mailing list