Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Should I use Fields, InsideOuts, or Properties?

by flogic (Acolyte)
on Jul 06, 2005 at 18:58 UTC ( #472914=note: print w/ replies, xml ) Need Help??


in reply to Should I use Fields, InsideOuts, or Properties?

I've my own backwards method around this problem. Basiaclly I have a module to create lvalue accessors for my attributes. So $foo->baris the same as $foo->{bar}. Then if I need to, I have more code to make the scalar a tied value so I get runtime type checking. It's kinda cool but probably also fairly slow. With some work the same method could probably also handle public and private attributes.


Comment on Re: Should I use Fields, InsideOuts, or Properties?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2015-07-01 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (10 votes), past polls