On Sunday, November 30, 2003, at 12:40 am, Elizabeth Mattijsen wrote: >> Because CLONE/DESTROY are called on objects, the mere presence of >> them does not affect the compilation. > > Hmmm... that statement as such is incorrect, I think. CLONE is called > as a _class_ method (I just realized), _not_ as an object method. As > the following shows: > > use threads; > sub CLONE { warn "CLONE called with @_\n" } > threads->new( sub { 1 } )->join; > > gives as output: > > CLONE called with main > > This is a point that should be made more clearly. I just realised > that after really grokking the "or inherited" in the following text > from perldelta.pod: > Yes, sorry, meant called as methods when things happen. Are there any more magic method names? :) ArthurThread Previous | Thread Next