On 7/4/05 at 2:14 PM, suppressed (Mark Fuller) wrote:
> From: "Andrew Brosnan" <suppressed>
> >Just speaking generally about OO, I always figure it's dangerous to
> monkey with the object's underlying data structure. Might it change
> in the future? Who knows.
>
> I agree with that if I'm acessing C::A's underlying data structure.
> What I'm getting at is why does C::A force its underlying data
> structure upon me?
It's not forcing it's data structure on you at all. In fact, the docs
probably don't even mention what it is.
> My whole point is that I don't want to make assumptions about C::A's
> data structure. I don't want to know anything about it. But, I think
> I should have access to $self without having to use C::A's "param"
> method
Well, you get access to the object through methods. It seems like you
want to assign values directly to what you are assuming is going to be a
simple hashref.
Just FYI - I used to think along the same lines as you. Then this guy
named Damian set my a$$ straight ;-). He had a pretty good book out:
'Object Oriented Perl' from Manning. Well worth checking out.
Regards,
Andrew
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.