What should this code print?

    newclass P1, "Foo"
    instantiate P2, P1
    isa I0, P2, "Foo"
    print I0
    print "\n"
    end
  
 How about this?

    newclass P1, "Foo"
    instantiate P2, P1
    isa I0, P2, "ParrotObject" 
    print I0
    print "\n"
    end

     
 (NB Both will segfault without the fix I just checked in for 
  parrotobject.pmc, as the PMC wasn't being initialized properly
  due to a typo).

 Simon 
 
 
 


Reply via email to