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

[email protected] (Bart Lateur) Wed, 09 Aug 2000 14:08:09 +0200
Newsgroups perl.perl6.stdlib
Organization MediaMind
Message-ID <[email protected]>
On Wed, 09 Aug 2000 11:41:20 +0100, Hildo Biersma wrote:

>Could we agree on the idea that CGI.pm should be split up?

No. I could agree that

	CGI->somemethod(@args);

would do exactly the same as

	CGI::somemethod(@args);

i.e. no difference between function calls and class methods, unless the
method explicitely wants to know.

Why make module authors' life even more miserable?

Passing the class/object in a magic variable, e.g. $SELF, instead of in
the arguments list, is one way.

-- 
	Bart.