Re: How to implement both object->method and module::function interface?

[email protected] (Graham Barr) Tue, 15 Aug 2000 15:28:34 +0100
Newsgroups perl.perl6.stdlib
Message-ID <[email protected]>
On Tue, Aug 15, 2000 at 10:14:36AM -0400, Chaim Frenkel wrote:
> As much as I'm not for it, would
> 
> having
> 
> 	sub foo :method {}		# In objects vtbl
> and
> 	sub foo {}			# only if procedural call
> 
> being a valid construct and having perl dispatch appropriately, be
> viable?

What does it mean ? Can the first only ever be called as a methoed and the
second as a procedure ? Will we have to define both foo's ?

Graham.