For the same reason you wouldn't modify data in a C structure belonging to
an API you're using.  It violates the general software engineering
principles of information hiding and encapsulation.  There are all kinds of
reasons putting your own data into an API's structure is bad, for instance
if the implementation changes then your trick may no longer work, and your
code will not be portable to new versions of the library.

However this discussion is beyond the scope of this list.

-Will


-----Original Message-----
From: Brandon Metcalf [mailto:[EMAIL PROTECTED] 
Sent: Tuesday 29 March 2005 15:36
To: David Goodman
Cc: [email protected]
Subject: Re: adding key to DB object


d == [EMAIL PROTECTED] writes:

 d> Why do you see using private attributes like
 d> $dbh->{private_commitflag} as preferable to embedding
 d> a dbh in your own object?


I suppose I could do that.  Why would you use the latter method?

-- 
Brandon


     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is 
solely intended for the named addressee (or a person responsible for delivering 
it to the addressee). If you are not the intended recipient of this message, 
you are not authorized to read, print, retain, copy or disseminate this message 
or any part of it. If you have received this e-mail in error, please notify the 
sender immediately by return e-mail and delete it from your computer.

Reply via email to