Greetings:

When you invoke a method, the first argument to the method equal to the 
method's invocant is automatically inserted.

i) Is this essentially the same as a C++ "this" pointer?

ii) Apparently, the first argument can be a reference to its object, or the 
object.

iii) There is an example in the Camel book, in the Object-Oriented-Programming 
Chapter (ch. 12),  where accessor methods are being generated automatically; in 
this example, it seems that the invocant is explicity placed into the first 
argument.  If you put in the this pointer, does PERL know not to put in another 
one?

matthew s

                
---------------------------------
Yahoo! Mail
 Stay connected, organized, and protected. Take the tour

Reply via email to