# New Ticket Created by  Jerry Gay 
# Please include the string:  [perl #42776]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42776 >


there are two 'isa' ops, defined in src/ops/object.ops

one takes a string param, and the other a pmc. it seems the string
variant is used frequently throughout the source and tests, but the
pmc variant is much less frequently used, and i haven't come across
any tests, either. it seems these two ops don't agree on return
value... which is problematic.

  D:\usr\local\parrot\head>parrot -
  .sub main
      .local pmc class, obj
      class = new 'Class'
      obj = class.'new'()
      $I0 = isa obj, 'Object'
      print $I0
      .local pmc cl
      cl = new 'String'
      cl = 'Object'
      $I1 = isa obj, cl
      print $I1
  .end
  ^Z
  10

why? iunno. but this is causing me problems when using 'isa_ok' in
'Test/More.pir', since it uses the pmc variant.
~jerry

Reply via email to