petdance/scratch — Issue #959: Sub PMC should support getattribute
Author: petdance
Created: 2011-11-14 06:14:09+00:00
State: open
Labels: Pri-normal, Sev-medium, todo

The Sub PMC identifies itself, under `class`, as being an instance of the Class class.
Querying the Sub's Class for available attributes (`$class.inspect('attributes')`) returns a hash just chock full of goodness.

Sadly, attempting to request those attribute from the Sub doesn't work.

I believe that Sub should deliver on its promises, and provide the getattribute interface.

Alternatively, if Sub is going to require `inspect` to fetch the data, then the PMC class should not report those fields as attributes.

Originally http://trac.parrot.org/parrot/ticket/1442 by Austin_Hastings