Author: wayland
Date: 2009-02-18 07:29:03 +0100 (Wed, 18 Feb 2009)
New Revision: 25375
Modified:
docs/Perl6/Spec/S16-io.pod
Log:
Fixed operator overloading calls.
Modified: docs/Perl6/Spec/S16-io.pod
===================================================================
--- docs/Perl6/Spec/S16-io.pod 2009-02-18 06:14:51 UTC (rev 25374)
+++ docs/Perl6/Spec/S16-io.pod 2009-02-18 06:29:03 UTC (rev 25375)
@@ -447,8 +447,8 @@
multi method DateTime infix:<+>(Date $self, Time $other);
multi method DateTime infix:<+>(Date $self, Duration $other);
- multi method infix:<<=>>(Date $self, Date $other);
- multi method infix:<<=>>(Date $self, Duration $other);
+ multi method infix:{'<=>'}(Date $self, Date $other);
+ multi method infix:{'<=>'}(Date $self, Duration $other);
method get(Str $type, Str $of);
method last(Str $type, Str $of);
@@ -491,8 +491,8 @@
method toString($format?);
# This can't be right; how do we specify this
- multi method infix:<<=>>(Time $self, Time $other);
- multi method infix:<<=>>(Time $self, Duration $other);
+ multi method infix:{'<=>'}(Time $self, Time $other);
+ multi method infix:{'<=>'}(Time $self, Duration $other);
}
When created, recognises "today" as a possibility.
@@ -532,8 +532,8 @@
multi method infix:<->(DateTime $self, Duration $other);
multi method infix:<->(DateTime $self, Duration $other);
- multi method infix:<<=>>(DateTime $self, DateTime $other);
- multi method infix:<<=>>(DateTime $self, Duration $other);
+ multi method infix:{'<=>'}(DateTime $self, DateTime $other);
+ multi method infix:{'<=>'}(DateTime $self, Duration $other);
method init();
method truncate(Str $to);