Will it be possible in perl6 to overload multis on the const-ness of a
parameter, like C++ does?  For instance,

   multi getX(Foo $self:) returns Int {...} #const version
   multi getX(Foo $self: is rw) returns Int is rw {...} #non-const version

   If getX were called on a const Foo object then the first getX would be
called, and if it were called on a non-const Foo object the second one would
be.

Joe Gottman


Reply via email to