Jonathan Worthington wrote:
Hi,

Rakudo is currently failing t\spec\S12-class\attributes.t. This turns out not to be an issue with attributes, but rather exceptions. The test does:

my $c = Counter.new();
try {
   $c.x
}
ok($!, 'no public accessor for private attribute');

And fails because the Exception PMC does not implement the get_bool vtable method (which I'm guessing must have changed when we merged pdd25cx). I'm not sure what the best solution for this is...in the meantime, I have fudged that test, so the rest of attributes.t passes again now.

The Exception PMC never had a get_bool vtable function implemented, but it did previously inherit one from ResizablePMCArray. So, that test was relying on an implementation artifact.

Under what circumstances should an exception report TRUE? Under the old implementation, since it was using ResizablePMCArray, it would report TRUE if any data was stored in the exception. That is, it always reported TRUE, because 'init' prefilled the first 11 slots in the exception's array.

Allison

Reply via email to