Slash Boxes
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.
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 =, 0, 0);
        isa_ok($a, UnitVector, "Variable is of type UnitVector");
        isa_ok($a, Vector, "Variable is of type Vec

    • 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. :)