[armedbear-devel] Revised patch for ticket #58 (inspection of Java objects)

Alessio Stalla alessiostalla at gmail.com
Thu Jul 30 19:10:12 UTC 2009

Hi all,

Here is my third iteration. It no longer represents fields as a Lisp
lists, which was a premature optimization and as such the root of all
evil (*) - i.e. it had the same problem discussed with Tobias, caching
too much, because the value of a field was calculated once and never
updated, unless one reinspected the root object. Now a FieldRef class
is used instead. When inspected, a FieldRef shows the full string
representation of the field - e.g. private static java.lang.Object foo
- and of course allows to inspect the field's value, which is always
coherent to the value the field has when the FieldRef is inspected.

If there are no objections, tomorrow I'll commit the patch.


(*) as a side note, today I got my copy of Knuth's The Art of Computer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ticket58.patch
Type: text/x-patch
Size: 10556 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20090730/f1898262/attachment.bin>

More information about the armedbear-devel mailing list