Re: method signature issues

2008-09-22 Thread Patrick R. Michaud
On Mon, Sep 22, 2008 at 02:35:20PM +0800, Chris Davaz wrote: > Awesome Patrick, you totally nailed it ;-) > > I'll be submitting a patch soon. Do you know if there is a Parrot bug > logged for the problem you described? I don't think there's a Parrot bug filed for the issue of MMD dispatch on str

Re: method signature issues

2008-09-21 Thread Chris Davaz
Awesome Patrick, you totally nailed it ;-) I'll be submitting a patch soon. Do you know if there is a Parrot bug logged for the problem you described? On Mon, Sep 22, 2008 at 12:27 AM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Sat, Sep 20, 2008 at 12:46:53PM +0800, Chris Davaz wrote: >>

Re: method signature issues

2008-09-21 Thread Jonathan Scott Duff
How does Parrot tell which parameters are the invocants? PDD27 mentions that parameters can be decorated with :invocant, but that doesn't seem to be used anywhere. I'll also note that if :multi and :method don't go together then some of the language in PDD27 needs to change. For instance, "The C<

Re: method signature issues

2008-09-21 Thread Patrick R. Michaud
On Sat, Sep 20, 2008 at 12:46:53PM +0800, Chris Davaz wrote: > In any-str.pir we need to figure out how to change > .sub 'split' :method :multi('String') > into > .sub 'split' :method :multi(_, 'String') > [...] ... let's back up a bit and look at what is really happening. > [...] Any when we cha

Re: method signature issues

2008-09-21 Thread chromatic
On Sunday 21 September 2008 03:53:31 Jonathan Worthington wrote: > > I said they're incompatible -- meant in terms of their semantics.  I > > didn't say they don't work together in some cases with our current > > implementation. (They probably shouldn't.) > They probably should. If they didn't, t

Re: method signature issues

2008-09-21 Thread Chris Davaz
Patrick, Any thoughts on why I am getting the "No applicable methods" error as described in the head of this thread? On Sun, Sep 21, 2008 at 11:38 PM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Sat, Sep 20, 2008 at 11:05:34PM -0700, chromatic wrote: >> On Saturday 20 September 2008 22:24:

Re: method signature issues

2008-09-21 Thread Patrick R. Michaud
On Sat, Sep 20, 2008 at 11:05:34PM -0700, chromatic wrote: > On Saturday 20 September 2008 22:24:52 Chris Davaz wrote: > > > If it is the case that :method and :multi are incompatible, I am a bit > > surprised to see that in the Rakudo src directory: > > I said they're incompatible -- meant in te

Re: method signature issues

2008-09-21 Thread Jonathan Worthington
chromatic wrote: On Saturday 20 September 2008 22:24:52 Chris Davaz wrote: If it is the case that :method and :multi are incompatible, I am a bit surprised to see that in the Rakudo src directory: I said they're incompatible -- meant in terms of their semantics. I didn't say they do

Re: method signature issues

2008-09-20 Thread chromatic
On Saturday 20 September 2008 22:24:52 Chris Davaz wrote: > If it is the case that :method and :multi are incompatible, I am a bit > surprised to see that in the Rakudo src directory: I said they're incompatible -- meant in terms of their semantics. I didn't say they don't work together in some

method signature issues

2008-09-20 Thread Chris Davaz
If it is the case that :method and :multi are incompatible, I am a bit surprised to see that in the Rakudo src directory: $ grep -rHI ':method :multi' . | grep -v '.svn' | wc -l 94 On Sun, Sep 21, 2008 at 11:30 AM, chromatic <[EMAIL PROTECTED]> wrote: > On Friday 19 September 2008 21:46:53 Chris

Re: method signature issues

2008-09-20 Thread chromatic
On Friday 19 September 2008 21:46:53 Chris Davaz wrote: > In any-str.pir we need to figure out how to change > > .sub 'split' :method :multi('String') > > into > > .sub 'split' :method :multi(_, 'String') > > since the former method signature is causing problems for me as I'm > trying to implement

method signature issues

2008-09-19 Thread Chris Davaz
In any-str.pir we need to figure out how to change .sub 'split' :method :multi('String') into .sub 'split' :method :multi(_, 'String') since the former method signature is causing problems for me as I'm trying to implement .sub 'split' :method :multi(_, 'Sub') with an additional optional argu