Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: A Class:: module I don't want to write

by Perl Mouse (Chaplain)
on Nov 23, 2005 at 12:01 UTC ( [id://511060]=note: print w/replies, xml ) Need Help??


in reply to Re^3: A Class:: module I don't want to write
in thread A Class:: module I don't want to write

Doesn't an accessor method generator have to make assumptions about how your object's data is stored?
Not if the generator takes care of storing the data. The generator could treat the object as if it were an inside-out object, and store attribute data in a hash - either a package variable, or a lexical hash using a source filter (a source filter doesn't have to parse the source, it can also be used to add something to the code - as what generators are basically doing). Then it doesn't really matter whether the object is an inside-out object, or a hash-based one, or something else.
Perl --((8:>*
  • Comment on Re^4: A Class:: module I don't want to write

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found