On 12/3/2003 8:27 PM, Stas Bekman wrote:

Randy W. Sims wrote:

I'm a C++ guy, so this kinda makes me think of auto_ptr<>'s and their reset method except that doesn't actually copy... actually this sounds more like a copy constructor; what about copy_construct() ???


Thanks, Randy.

I haven't done C++ for a long time, but if I remember correctly copy_construct() is invoked on the existing object and it doesn't modify the original, but returns a new object. Here the situation is different: Perl has already invoked its copy_constructor and gave you the resulting object, so all is left is to copy the C struct and modify the passed object's IV slot. So this is sort of a copy_construct on the guts of the object...


So it's more like a deepcopy_reconstructor()? Yea, I don't know a nice way to say that.


But then I like possess also since it has that connotation of something magic and scarry going on... better double check those docs before invoking a possession.

thesaurus says possess: bedevil, diabolize. ;)


let's call it scary_function() then ;)

% perldoc -f possess
  possess SPIRIT
          this function is NOOP before midnight, but after the midnight
          will make your code do scary things, altering the TIMTOWTDI to
          TIASWTDI (as in There Is A Scary Way To Do It). You must be at
          least 16 years old to use this function.

;)

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




--
A little learning is a dang'rous thing;
Drink deep, or taste not the Pierian spring;
There shallow draughts intoxicate the brain;
And drinking largely sobers us again.
                - Alexander Pope



Reply via email to