ui factory - what should it do?

Aaron Bentley aaron.bentley at utoronto.ca
Fri Feb 24 19:33:38 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
>>W.r.t. the reuse of member variables: We're not talking about having
>>these objects around for indefinite periods : I don't think coding every
>>one of them for serial-calls is sensible, I'd ignore the issue until you
>>have a use case for reusing an instance of one of these objects.
> 
> 
> I think the discomfort there comes from having references in a
> long-lived object that are only meaningful for the duration of a single
> call.  (It sounds like I'm talking about gc but I'm thinking of the
> burden on the developer not on the system.)  If the class is hidden
> from most callers behind a function it's less of a problem but 

Yes, that's pretty much it.  As a related issue, most of the operations
on TreeTransforms become invalid after TreeTransform.apply() is called.
 But the TreeTransform object is meant to have many operations performed
on it, so *something* will have a reference to it.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD/1+S0F+nu1YWqI0RAjhVAJ98WI66WBffyMhG6N/fLL3ekB/JFACfS8qq
/W/5lEGHXZWKmwUg5bt0O3M=
=3JHX
-----END PGP SIGNATURE-----




More information about the bazaar mailing list