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

[email protected] (Tim Bunce) Tue, 15 Aug 2000 12:33:15 +0100
Newsgroups perl.perl6.stdlib
Organization Paul Ingram Group, Software Systems, +44 1 483 862800
Message-ID <[email protected]>
On Mon, Aug 14, 2000 at 11:30:28AM -0500, Jonathan Scott Duff wrote:
> 
> I'll just make up some alternatives for everyone to shoot at:
> 
> 	use Foo;			# like CGI.pm, morphs on demand
> 
> 	use Foo;			# procedural Foo
> 	use OOFoo;			# OO Foo
> 
> 	use Foo ':procedural';		# default if ommitted. 
> 	use Foo ':OO';
> 
> 	use Foo;			# equivalent to Foo::procedural
> 	use Foo::procedural;		
> 	use Foo::OO;
> 
> 	use OOP;			# sets some magic variable.
> 	use Foo;			# Now OO rather than procedural

I don't think you can make much valuable progress down that road till
we know what Larry's thinking about how to support multiple installed
versions of a module and multiple implementations of the same 'interface'.

This is a related issue: multiple interfaces to the same code.

Tim [who's only passing through].