Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I've just posted on it, but I can confirm that with the latest Rakudo, operator overloading works for the Vector class. pmichaud++! I can't thank you enough. On the other hand, I think the isa change broke one of Vector's tests.

    {
        subset UnitVector of Vector where { (1 - 1e-10) < $^v.Length < (1 + 1e-10) };

        my UnitVector $a = Vector.new(1, 0, 0);
        isa_ok($a, UnitVector, "Variable is of type UnitVector");
        isa_ok($a, Vector, "Variable is of type Vector");
    }

    Both isa_ok's used to work, now the first fails. Is this a glitch in the updated isa, or a broken test?

    • Looks like a glitch somewhere in the isa specification. I doubt it's in the updated isa for Parrot; I'm more likely to think it's something in Rakudo itself.

      I'm very glad to hear the operator overload is working for Vector; Vector was one of the reasons fixing the operator overloading was high on my priority list. :)

      Pm