On Sun, Jan 23, 2000 at 01:12:46PM -0500, [EMAIL PROTECTED] wrote:
>   JNP> Your brain isn't twisted enough.  The reference is a hash only
>   JNP> because I made it that way by default.  The event magic can be
>   JNP> attached to any kind of reference.  For example, see
>   JNP> t/attach_to.t.
> 
> hmm, rare that someone doesn't think i am twisted. :-) i grok that the
> magic part is separate from the actual reference and you can use any ref
> type. but i feel dirty directly accessing the hash and not through a
> method. 

Why?  This isn't C++, y'know?

>   JNP> Sure, but you still haven't convinced me that it is necessary.  ;-)
> 
> <carrot>
> with sugar on top?
> </carrot>
> 
> <stick>
> or i will beat you with a large clue bat
> </stick>

OK, shall I call it 'data'?

> so there is a good reason! actually in a few cases (plain) i return the
> watcher object since there is no need for encapsulated data there. all i
> want is a callback of an object/method. but making that work across the
> board would clean up the design. i would always return the watcher but
> it would be reblessed to my class which would inherit the Event
> classes. then the high level user could use any of my methods or yours
> without any conflicts and extra code.

Yes.  We are in agreement.

-- 
"Never ascribe to malice that which can be explained by stupidity."
                            via, but not speaking for Deutsche Bank

Reply via email to