Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Class::Classless vs. Class::Prototyped

by John M. Dlugosz (Monsignor)
on Sep 12, 2003 at 16:33 UTC ( [id://291122]=note: print w/replies, xml ) Need Help??


in reply to Re: Class::Classless vs. Class::Prototyped
in thread Class::Classless vs. Class::Prototyped

Well, I have a number of different record types and modifier flags (http://www.dlugosz.com/ZIP2/structure.html) and I want to model them as Perl objects. They will encode/decode, as well as provide functionality specific to that record type. Notice on that page I have real binary hex-dump examples, as I wrote a simple thing initially. But last I left it, I was working on a more elaborate system of populating both values and behavior based on the initial "type" when new-ing it. On a particular species, for example, a "set" method could check for contraints based on the rules of that specific situation.

The implementation concept was to have "slots" that could be values or code. That's starting to sound like what these modules do. So why re-invent it?

—John

  • Comment on Re: Re: Class::Classless vs. Class::Prototyped

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-24 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found