Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion A6: overloading multis on constness of parameters
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joe Gottman  
View profile  
 More options Mar 11 2003, 9:48 pm
Newsgroups: perl.perl6.language
From: jgott...@carolina.rr.com (Joe Gottman)
Date: Tue, 11 Mar 2003 21:01:21 -0500
Local: Tues, Mar 11 2003 9:01 pm
Subject: A6: overloading multis on constness of parameters
   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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.