Re: How to implement both object->method and module::function interface?
[email protected] (Graham Barr) Wed, 16 Aug 2000 09:11:21 +0100
| Newsgroups | perl.perl6.stdlib |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Aug 15, 2000 at 04:59:19PM -0800, Michael Fowler wrote: > Which makes me think of the following. You don't need to 'use' a seperate > module for a procedural or OO interface. The module author could simply > provide a constructor in the procedural module that would require the OO > module in the background, and bless the object into that class. That was where this thread started. > This would > appear largely transparent to the user, right up until they tried to do > isa() or ref() tests on the object. But that is the catch. Now if the language was to give us a way to support both in the same package in an efficient way, so much the better. Graham.