Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: proxying overloads: returns seem to lie

by rjbs (Pilgrim)
on Sep 11, 2004 at 14:26 UTC ( #390280=note: print w/ replies, xml ) Need Help??


in reply to Re: proxying overloads: returns seem to lie
in thread proxying overloads: returns seem to lie

Huh! Well, it's good that I can now make the code work, although it starts to suggest to me that I'm going to need to write more explicit overloading for the Capsule class to make everything work correctly. Meanwhile, I'm not sure, given your explanation, why this works normally:

my $result = $widget eq "It's a widget!"; print "# result of comparison: ", ($result?'true':'false'), "\n";
I suppose there's some context change going on in the capsule's overload nomethod, but I'm not clear on what it is.

Is there a simple tool I could use to see these context changes? I don't think it's the debugger, but maybe it's got voodoo I don't know about.
rjbs


Comment on Re^2: proxying overloads: returns seem to lie
Download Code
Re^3: proxying overloads: returns seem to lie
by Prior Nacre V (Hermit) on Sep 25, 2004 at 23:26 UTC

    Glad you got your code working.

    I'm not sure about tools for this: investigation of the CPAN Module: Want may prove fruitful.

    Regards,

    PN5

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://390280]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-12-28 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls