Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Class::InsideOut - yet another riff on inside out objects.

by Aristotle (Chancellor)
on Dec 19, 2002 at 20:19 UTC ( #221237=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Class::InsideOut - yet another riff on inside out objects.
in thread Class::InsideOut - yet another riff on inside out objects.

Well, the point is twofold:

  1. Most importantly, we need a way for a generic DESTROY to work.
  2. Ideally we wouldn't have to name the the field more than once and only once.
The attribute semantics seem to offer the most succint possible syntax to reach both of those goals - provided it can at all be made to work, of course.

Makeshifts last the longest.


Comment on Re^3: Class::InsideOut - yet another riff on inside out objects.
Re: Re^3: Class::InsideOut - yet another riff on inside out objects.
by John M. Dlugosz (Monsignor) on Dec 20, 2002 at 00:33 UTC
    The generic destroy would work fine, since the class would remember all the fields it generated using this syntax just as well as it could using any other syntax.

    I agree that this still names the field twice (public name optional, internal ref optional) when most of the time you'd be happy to use the same name in both places.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (18)
As of 2014-07-23 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (145 votes), past polls