Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

(tye)Re2: A vexing list vs. scalar context question.

by tye (Sage)
on Feb 01, 2002 at 07:13 UTC ( [id://142622]=note: print w/replies, xml ) Need Help??


in reply to Re: (tye)Re: A vexing list vs. scalar context question.
in thread A vexing list vs. scalar context question.

No, ref() should completely ignore blessedness and there should be a blessed() function that returns false if the reference is not blessed, and the package it is blessed into if it is blessed.

I've seen too many cases of practical code that wants to ask "is this blessed" and is force to jump through some pretty stupid hoops. The overloading of ref() to combine both reference type and blessedness state was a mistake from the start.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re2: A vexing list vs. scalar context question.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-19 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found