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 Vec