[NCLUG] perl/programming question

J. Paul Reed preed at sigkill.com
Mon Feb 19 13:04:42 MST 2001


On 19 Feb 2001 at 11:48:25, Charles Clarke modified my mailspool to say:

> So, $S contains the object reference and %params now contains %blocks

This is one of the stupidest things about perl OO; if you have member
functions (methods of a particular class), you have to actually "gather"
what would be the 'this pointer' in C++ yourself... thus, the first
statement of all (of my) OO perl stuff is:

sub member_function
{
   my $this = shift;
   my @args = @_;

   ...
}

Like many things in C++, Perl OO was definitely tacked on after the fact,
and it shows.

Later,
Paul
  ----------------------------------------------------------------------
  J. Paul Reed                preed at sigkill.com || web.sigkill.com/preed
  AOL, CIA, NSA, whatever! They all have three letters, they all collect
  information, and they all screw the public -- User Friendly, 2/10/2000



More information about the NCLUG mailing list