Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

:lvalue support in Object::InsideOut

by jdhedden (Deacon)
on Aug 09, 2006 at 13:15 UTC ( [id://566402]=perlmeditation: print w/replies, xml ) Need Help??

After reading defining methods on the fly, I finally made the effort to learn about :lvalue subroutines.

They seem useful enough, so I added support for autogenerating :lvalue accessor methods to Object::InsideOut since one of the design philosophies behind OIO is full support of TIMTOWTDI.

Their use is well-documented in the POD as well as some issues related to :lvalue subroutines in general.

In perlsub, an issue is raised that type checking cannot be performed in :lvalue subroutines. While this is true for pure Perl, this limitation can be overcome using the Want module. As such, the :lvalue accessor methods generated by OIO have the same type checking capabilities as other accessors.


Remember: There's always one more bug.

Replies are listed 'Best First'.
Re: :lvalue support in Object::InsideOut
by flogic (Acolyte) on Aug 11, 2006 at 17:44 UTC

    Awsome! One of my ideas actually lead to somehting. Though I'm apparently not the first to have this idea ( see: Re: defining methods on the fly).

    Death to pointless squigglies

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://566402]
Approved by Corion
Front-paged by diotalevi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-18 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found