random-state.net

Nikodemus Siivola

<< next | top | previous >>

May 16th 2004 #
random, May 16th 2004

What to do when temporarily bored/frustrated with personal projects? Fix bugs in other people's code! Bruno Haible recently posted two PCL bugs on sbcl-devel — having never really looked at PCL I thought this was an excellent way to have some respite from package locks.

Considering the above admission the following should be taken with healthy skeptisism, but it seems to me that class-allocated slots are well and truely screwed:

  1. OBSOLETE-INSTANCE-TRAP compares old class slots to new instance slots.
  2. UPDATE-SLOTS calls UPDATE-SHARED-SLOT-VALUES, which unconditionally updates all class slots.
  3. SHARED-INITIALIZE (well, one of the methods) ignores slot-names, and updates class slots (again) unconditionally.

I've no clue what should be done about numero uno, but removing the call to UPDATE-SHARED-SLOT-VALUES and fixing no 3. seems to fix the first bug reported by Haible, with no new failures in either GCL ansi-tests or the SBCL regression suite. Go me!