Re: Questions about :multi in Method Signatures

2008-09-17 Thread Moritz Lenz
Patrick R. Michaud wrote: > On Wed, Sep 17, 2008 at 08:37:36PM +0800, Chris Davaz wrote: >> I am confused about how we should setup method signatures: >> >> Let's take a look at a line in any-str.pir: >> >> 46 .sub 'comb' :method :multi(_) >> 47 .param pmc regex >> 48 .param int count

Re: Questions about :multi in Method Signatures

2008-09-17 Thread Patrick R. Michaud
On Wed, Sep 17, 2008 at 11:48:54PM +0800, Chris Davaz wrote: > That's a great response, thanks. Clears things up. One question, should be > always be using _ for the invocant or should we try to restrict it? I suggest always using _ for the invocant, at least for now. Pm

Re: Questions about :multi in Method Signatures

2008-09-17 Thread Chris Davaz
That's a great response, thanks. Clears things up. One question, should be always be using _ for the invocant or should we try to restrict it? On Wed, Sep 17, 2008 at 10:52 PM, Patrick R. Michaud <[EMAIL PROTECTED]>wrote: > On Wed, Sep 17, 2008 at 08:37:36PM +0800, Chris Davaz wrote: > > I am con

Re: Questions about :multi in Method Signatures

2008-09-17 Thread Patrick R. Michaud
On Wed, Sep 17, 2008 at 08:37:36PM +0800, Chris Davaz wrote: > I am confused about how we should setup method signatures: > > Let's take a look at a line in any-str.pir: > > 46 .sub 'comb' :method :multi(_) > 47 .param pmc regex > 48 .param int count:optional > 49 .param i

Questions about :multi in Method Signatures

2008-09-17 Thread Chris Davaz
I am confused about how we should setup method signatures: Let's take a look at a line in any-str.pir: 46 .sub 'comb' :method :multi(_) 47 .param pmc regex 48 .param int count:optional 49 .param int has_count:opt_flag As you can see we have one parameter specified in