Mon Aug 22 11:57:09 CEST 2005 pc@p-cos.net
* Initial revision.
Sat Sep 10 12:34:05 CEST 2005 pc@p-cos.net
* Removed spurious &allow-other-keys declarations.
Sat Sep 10 13:04:50 CEST 2005 pc@p-cos.net
* cl:defmethod reverted to defmethod.
I have changed one method definition to cl:defmethod because the LispWorks version of closer-mop redefines the defmethod macro. In that one case that led to a lack of recognizing additional keyword arguments. Closer-mop now includes a workaround for this, so that the workaround in ContextL is not necessary anymore.
Sat Sep 10 16:46:35 CEST 2005 pc@p-cos.net
* Added define-layered-method, removed naming convention for layered methods.
Until now, methods for layered functions had to be defined like this:
(defmethod -function-name- ((layer some-layer) args ...)
...)
People found this confusing and inconsistent with the other defining macros, i.e. define-layered-class and define-layered-function. Furthermore, they didn't like the naming convention that layered functions are named like function-name, and their methods are named like -function-name- (i.e. with preceding and succeeding dashes). So this has been replaced, and now the methods for layered functions are defined like that:
(define-layered-method :in-layer some-layer (args ...)
...)
Note that the :in-layer declaration has to come before the qualifiers, if any.
Thanks to Bjoern Lindberg and Thomas F. Burdick for the concrete suggestions. Among other things, the new approach also has the advantage that the implementation of layered functions doesn't shine through.
Sat Sep 10 23:39:15 CEST 2005 pc@p-cos.net
* Added the possibility to ensure inactive layers + a number of bugfixes.
It's now possible to say with-inactive-layers, and the functional equivalents to with-active-layers have also been adapted to enable inactivation of layers. During the process, a number of bugs have been revealed, especially wrt the previous removal of &allow-other-keys and problems related to finalize-inheritance in Allegro Common Lisp.
Sun Sep 11 14:47:06 CEST 2005 pc@p-cos.net
* Added checks for layer inheritance.
Inheritance between layers is not officially supported yet, but I have already added checks for ensuring active and inactive that would result in incorrect layer orderings.
Sun Sep 11 14:49:39 CEST 2005 pc@p-cos.net
tagged 0.1
Sun Sep 11 23:27:23 CEST 2005 pc@p-cos.net
* Added safe-special-symbol-progv and special-symbol-progv, plus a few optimization tweaks in cx-layer.
Thu Sep 15 01:24:09 CEST 2005 pc@p-cos.net
* Further performance tweaks and a workaround for a bug in OpenMCL.
Mon Sep 19 17:50:04 CEST 2005 pc@p-cos.net
* Automatically generated writers need a different argument-precedence-order than the default.
Wed Oct 19 20:00:43 CEST 2005 pc@p-cos.net
* Fixed typo in cx-layered-class.lisp
Wed Oct 26 17:33:15 CEST 2005 pc@p-cos.net
* Fixed a bug in the compiler macros in cx-layer.
Sun Oct 30 15:28:33 CET 2005 pc@p-cos.net
* Resurrected better error handling for rebinding non-special places from AspectL.
Sun Oct 30 15:29:23 CET 2005 pc@p-cos.net
* Changing non-special places to special places now also works in Allegro.
Wed Nov 30 21:26:37 CET 2005 pc@p-cos.net
* Added a comment for an otherwise confusing method definition.
Wed Nov 30 22:47:08 CET 2005 pc@p-cos.net
* Improved parsing of layered methods.
The :method option in define-layered-function is now parsed correctly, similar to how define-layered-method is parsed and processed. Furthermore, one can now give a name to the otherwise gensymmed layer parameter for a layered method. This is useful when one wants to call call-next-method with changed parameters. In that case, the layer parameter must be passed explicitly. (That's not optimal, but the best workaround I can think of.)
Example:
(define-layered-method some-function :in-layer (layer some-layer) (&rest some-parameters)
(apply #'call-next-method layer ... changed parameters ... some-parameters))
Tue Dec 20 11:48:06 CET 2005 pc@p-cos.net
* Fix in updating non-special slots.
Tue Dec 20 17:20:53 CET 2005 pc@p-cos.net
* Switched to symbols in the asdf definition.
Tue Dec 20 20:53:04 CET 2005 pc@p-cos.net
* Added a new namespace for layers.
Before this change, layers were simply classes with the same name as given in the deflayer form. This potentially leads to name conflicts between classes and layers. Since Common Lisp favors multiple namespaces, I have changed this, so now layers reside in their own namespace. (They are still internally implemented as classes.)
Wed Dec 28 22:58:09 CET 2005 pc@p-cos.net
* Replaced a reduce idiom with a better understandable loop idiom.
Tue Jan 3 12:30:36 CET 2006 pc@p-cos.net
* Removed a spurious #:.
Thu Jan 19 21:33:02 CET 2006 pc@p-cos.net
tagged 0.2
Fri Jan 27 15:34:25 CET 2006 pc@p-cos.net
* Removed :method-class option from ensure-layered-method in CMUCL and SBCL.
Since the implementation of ensure-method in CMUCL's and SBCL's Closer to MOP implementation has changed, ContextL's ensure-layered-method cannot accept the :method-class option anymore. This restriction can hopefully be removed again in the future.
Fri Jan 27 15:37:07 CET 2006 pc@p-cos.net
* Switched from slot-xxx-using-class to slot-xxx in a shared-initialize definition.
CLisp seems to have problems with calling slot-xxx-using-class functions within shared-initialize under some circumstances, so I switched to calling the plain slot-xxx functions instead.
Fri Jan 27 23:42:16 CET 2006 pc@p-cos.net
* Replaced a few loops with calls to the new Closer to MOP utility function required-args.
Fri Feb 3 13:10:40 CET 2006 pc@p-cos.net
tagged 0.21
Fri Feb 24 22:47:23 CET 2006 pc@p-cos.net
* Update code because MCL is disappearing from OpenMCL's features list
Wed Mar 1 21:10:34 CET 2006 pc@p-cos.net
* Updated the version number and copyright information in the system definition.
Thu Mar 2 16:41:00 CET 2006 pc@p-cos.net
* Add the metaclass singleton-class.
Thu Mar 2 16:43:47 CET 2006 pc@p-cos.net
* A layer is now a subclass of special-class and singleton-class.
Thu Mar 2 16:47:15 CET 2006 pc@p-cos.net
* Reordered ensure-inactive-layer-context to allow for inlining.
Thu Mar 2 16:48:52 CET 2006 pc@p-cos.net
* Minor edits.
Thu Mar 2 16:49:39 CET 2006 pc@p-cos.net
* Added a few calls to load-time-value.
Thu Mar 2 16:50:11 CET 2006 pc@p-cos.net
* Moved function name predicates to cx-util.lisp.
Thu Mar 2 16:50:44 CET 2006 pc@p-cos.net
* Refactored shifting of special slots so that it works for slots with :allocation :class as well.
Fri Mar 3 17:10:20 CET 2006 pc@p-cos.net
* Added clearer separation between layers and layer-classes.
Layers and layer classes were somewhat mixed up until recently. (See also comments about singleton classes.) They are now more cleanly separated.
Note that previous uses of find-layer have to be replaced by calls to find-layer-class. The function find-layer has now a slightly different meaning - it returns the prototye instance for a layer, not its class anymore.
Fri Mar 3 17:14:17 CET 2006 pc@p-cos.net
* Cleaned up implementation of singleton classes.
Accessors that automagically access slots in a class prototype when slots in the related class are attempted to be accessed are now removed again. These automagic accessors could have easily led to confusing base level and meta level code.
Singleton classes can now also have initargs.
Fri Mar 3 17:16:56 CET 2006 pc@p-cos.net
* Reimplemented shared-initialize for special classes.
Reimplementation of shared-initialize for special classes was necessary because otherwise slots with :allocation :class would have behaved erroneously when they are assigned to via initargs. (At least that was the case in one CL implementation, probably due to some optimization in the CLOS implementation that is now removed with the plain shared-initialize implementation.)
Sun Mar 5 13:30:37 CET 2006 pc@p-cos.net
* Added with-special-initargs / with-special-initargs* to special classes.
Thanks to Drew Crampsie for the main idea.
Sun Mar 5 13:31:50 CET 2006 pc@p-cos.net
* Added :initarg processing in with-active-layers / with-active-layers*.
Thanks to Nick Bourner for the main idea.
Sun Mar 5 14:26:24 CET 2006 pc@p-cos.net
* Removed function-name-p in cx-util and changed the function name test in cx-layered-function accordingly.
Sun Mar 5 14:56:46 CET 2006 pc@p-cos.net
* Removed a spurious gensym in cx-layered-function.
Sun Mar 5 15:16:24 CET 2006 pc@p-cos.net
* Added calls to finalize-inheritance in find-layer, so that it also works in Allegro Common Lisp.
Sun Mar 5 15:17:15 CET 2006 pc@p-cos.net
* Added a test suite for special slots and with-special-initargs.
Sun Mar 5 17:13:36 CET 2006 pc@p-cos.net
* Turned many uses of *active-context* into a reference to a lexically scoped parameter active-context. This is a first step towards providing a MOP for layer activation/deactivation.
Mon Mar 6 22:10:23 CET 2006 pc@p-cos.net
* Renamed layer-object and layer-class to standard-layer-object and standard-layer-class, as another preparatory step towards providing a MOP for layer activation/deactivation.
Mon Mar 6 22:12:26 CET 2006 pc@p-cos.net
* Added a utility script for batch processing of the test cases.
Tue Mar 7 21:48:26 CET 2006 pc@p-cos.net
* Added a function call-next-layered-method as a more convenient way to perform a call-next-method with changed arguments.
Wed Mar 8 14:52:26 CET 2006 pc@p-cos.net
* Exported singleton classes.
Fri Mar 10 00:40:19 CET 2006 pc@p-cos.net
* Added two optional parameters to find-singleton.
Fri Mar 10 01:40:04 CET 2006 pc@p-cos.net
* Added functions to remove layers and layered functions.
Fri Mar 10 01:40:42 CET 2006 pc@p-cos.net
* Added an optional environment parameter to find-layer-class.
Fri Mar 10 17:07:11 CET 2006 pc@p-cos.net
* Added activate-layer-using-class and deactivate-layer-using-class for metacircular layer activation/deactivation.
Fri Mar 10 17:09:59 CET 2006 pc@p-cos.net
* Added a test case for metacircular layer activation.
Fri Mar 10 17:10:20 CET 2006 pc@p-cos.net
* Added two benchmarks.
Sat Mar 18 22:05:39 CET 2006 pc@p-cos.net
* Slots in singleton classes and in layers can now be reinitialized.
This is achieved by the :reinitialize option for a slot, like this:
(defclass some-class ()
((some-slot :initform 'foo :reinitialize t))
(:metaclass singleton-class))
(deflayer some-layer ()
((some-slot :initform 'bar :reinitialize t)))
The default value for the :reinitialize option is nil. If it is nil, then the slot will only be initialized when the class/layer is initialized. When the class/layer already exists before the new defclass/deflayer form is processed, the slot keeps its old value, as is the case for slots with :allocation :class in plain CLOS. If the :reinitialize option is true, however, then the respective slot will always be re/initialized with the value given with the :initform, no matter what. If no :initform is given, the slot is made unbound, again no matter what. In other words, a slot with :reinitialize nil behaves similar to a defvar form while a slot with :reinitialize t behaves similar to a defparameter form.
Currently, CMUCL and MCL have a bug wrt reinitialization of slots with :allocation :class, which leads to subsequent bug in ContextL. This has the consequence that special slots (with the option :special set to true) in singleton classes, in layers and in special classes for slots with :allocation :class do not work correctly anymore when the respective class/layer is reinitialized. As soon as the bugs in CMUCL and MCL are fixed, I can also fix the related bug in ContextL.
Mon Mar 20 07:43:41 CET 2006 pc@p-cos.net
* New version of reinitializable singleton/layer slots. The previous one had a buggy corner case.
Mon May 1 10:30:59 CEST 2006 pc@p-cos.net
* Added support for ecl.
Mon May 1 10:31:42 CEST 2006 pc@p-cos.net
* Switched to another idiom for disabling initarg checks for partial classes.
Mon May 1 10:32:15 CEST 2006 pc@p-cos.net
* Restricted MOP-friendly initialization of special slots to CL implementations that actually need it.
Thu Jul 20 12:55:17 CEST 2006 pc@p-cos.net
* Replaced calls to finalize-inheritance with calls to ensure-finalized.
Mon Aug 21 22:39:29 CEST 2006 pc@p-cos.net
* Removed a spurious in-package declaration in the .asd file.
Sat Aug 26 15:11:23 CEST 2006 pc@p-cos.net
* In SBCL, ensure-layered-method now can take the :method-class argument again.
Sat Aug 26 15:13:49 CEST 2006 pc@p-cos.net
tagged 0.3
Sat Aug 26 15:14:14 CEST 2006 pc@p-cos.net
* Updated version number in the .asd file.