in reply to Anonymous Hash in Constructor
Wouldn't an anonymous hash provide for/enforce encapsulation, a basic OOP concept?
James
Update2:Thanks for the explanation. As always, I have more reading to do! My thought was that naming the hash would create a symbol table entry that would allow direct access from the outside, not that you would want to or should do that.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Anonymous Hash in Constructor
by chromatic (Archbishop) on Oct 19, 2012 at 05:01 UTC | |
by locked_user sundialsvc4 (Abbot) on Oct 19, 2012 at 13:49 UTC |