Re: methods

2003-07-21 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: >Hi all, > >Whats the difference between class methods and instance methods on perl ? In any language, the difference between an instance method and a class method is that an instance method operates on an instance and a class method opera

RE: methods

2003-07-21 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hi all, > > Whats the difference between class methods and instance methods on > perl ? A class method can be called without reference to a specific instance. Any data it accesses is global. Constructors are class methods. An instance method accesses member data of a s

Re: methods

2003-07-19 Thread Jeff 'japhy' Pinyan
On Jul 19, [EMAIL PROTECTED] said: >Whats the difference between class methods and instance methods on perl ? Syntactically, nothing. In fact, if you see method $foo @args; or $foo->method(@args); you can't be sure whether it's a class method or an instance method being called, since $fo

Re: methods

2003-07-19 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hi all, Whats the difference between class methods and instance methods on perl ? Simply put from perltoot: "More often than not, the class provides the user with little bundles. These bundles are objects. They know whose class they belong to, and how to behave. Users

Re: methods

2003-07-19 Thread Oliver Schnarchendorf
On Sat, 19 Jul 2003 22:09:48 +0530 (IST), [EMAIL PROTECTED] wrote: > Hi all, > > Whats the difference between class methods and instance methods on perl ? > > kindly enlighten, > regards, > KM A class is a datastructure with methods that work upon this datastructures. An instance is a class aft