tewk wrote:
Patch was to large to attach so: http://tewk.com/pdd15_testing.diff

Tests currently fail because they use the "new" opcode to instantiate objects.

Fixing the 'new' opcode is the first change we need to make to get both object models working simultaneously. Pick one:

- The 'new' opcode can no longer lookup string class names by type number (eventually true).

- The PDD 15 object implementation needs to register a type number for its classes (as a temporary measure to smooth over integration).

I recommend the second option for now.

$P0 = get_class "Classname"
$P1 = $P0.'new'();

This will also work, and will provide more syntactic sugar than the 'new' opcode (e.g. named parameters for the initializer).

Allison

Reply via email to