SPUG:Prototyping Subroutines in Class(Objects)

Colin Meyer cmeyer at helvella.org
Thu Feb 6 18:03:43 CST 2003

Hi Don,

On Wed, Feb 05, 2003 at 09:23:53AM -0800, Don Shanks wrote:
> Does it matter if you prototype the class object since it is passed
> whether you want to or not, or is this just a matter of style?

It doesn't matter.  Unfortunately, function prototypes don't apply to
method calls in Perl.  From perldoc perlsub:

       Method calls are not influenced by prototypes either,
       because the function to be called is indeterminate at
       compile time, since the exact code called depends on

Have fun,

More information about the spug-list mailing list