Re: How to implement both object->method and module::function interface?
[email protected] (Bart Lateur) Wed, 09 Aug 2000 15:43:42 +0200
| Newsgroups | perl.perl6.stdlib |
|---|---|
| Organization | MediaMind |
| Message-ID | <[email protected]> |
On Wed, 9 Aug 2000 14:26:25 +0100, Graham Barr wrote:
>That is being considered. IF that does become part of the language I could
>see subs do something like
>
> if (defined $SELF) {
> called as a method
> }
> else {
> called as a sub
> }
That was my idea. The current unfixable bug I showed in CGI.pm would
easily be fixed. However, Hildo's argument WRT inheritance makes me less
convinced that it is the ultimate ideal.
--
Bart.