Re: Methods vs. Subs

2006-07-08 Thread Larry Wall
On Sat, Jul 08, 2006 at 07:42:06AM -0700, Jonathan Lang wrote: : Is there anything that you can do with a sub (first parameter being : some sort of object) that you cannot do with a method? Frex, given: : : multi method my_method($invocant:); : : would : : &topical_call := &my_method.assuming

Methods vs. Subs

2006-07-08 Thread Jonathan Lang
Is there anything that you can do with a sub (first parameter being some sort of object) that you cannot do with a method? Frex, given: multi method my_method($invocant:); would &topical_call := &my_method.assuming :invocant<$_>; be legal? -- Jonathan "Dataweaver" Lang