From octave-maintainers-request at bevo dot che dot wisc dot edu Mon Dec 15 19:27:57 2003 Subject: Re: capture command output From: Russell Standish To: Paul Kienzle , octave-maintainers@bevo.che.wisc.edu Date: Tue, 16 Dec 2003 12:27:39 +1100 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 15, 2003 at 06:56:17PM -0500, Paul Kienzle wrote: >=20 > PS, Is there any way to override 'private'? E.g., > by having your own copy of the header files with the word > private replace by public whereever it occurs? Or does the > C++ ABI do something special when storing privates? >=20 As far as I'm aware, there is no distinction at the binary level between private & public vars - it is advice to the compiler only. The proper way to do this is to insert a "friend" declaration within a rewritten class definition for which you need to access private variables. That way, the compiler can still catch incorrect usage in other parts of the code. I rely on this with my classdesc package - and you can borrow the "insert-friend" utility from that package if you need to rewrite a lot of code. Cheers ---------------------------------------------------------------------------- A/Prof Russell Standish Director High Performance Computing Support Unit, Phone 9385 6967, 8308 3119 (mobile) UNSW SYDNEY 2052 Fax 9385 6965, 0425 253119 (") Australia R dot Standish at unsw dot edu dot au =20 Room 2075, Red Centre http://parallel.hpc.unsw.edu.au/rks International prefix +612, Interstate prefix 02 ---------------------------------------------------------------------------- --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/3l+Lu0uihy7TX/oRAuhPAKCu40HxCB/m4e+hIPogSIGc8y+LcACeMW+R AnnB1EsHGyMx2eWDGWngJ14= =vXPB -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--