On Friday, December 13, 2002, at 01:17  AM, Tim Bunce wrote:

Actually I meant just a copy of the reference. Then add accessor methods
to lookup the value from the handle. Would be much faster as few uses would
access all those attributes.
Ah, yes, excellent point.

An extra method to 'freeze' (copy) the attributes could be added
and called in situations where the exception object would be longlived
and the user wanted to protect against the underlying handle attributes changing.
Again, good point.

The one reason I might to do it,
however, is that I change the key names of some of the attributes -- to
make them all lowercase and to use underscores to separate words. More
the Perl style for the Exception object accessors, that way.
But arguably inconsistent for this application.
Hrm. True. Perhaps all add some aliases. But I think I'll wait until I get the internals nailed down, as you have now, of course, forced me to rethink my approach. :-)

Best,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]

Reply via email to