- Feb 17, 2013
-
-
Pascal Costanza authored
Ignore-this: a238f198b88cf2a79873fe1553e46a85 darcs-hash:f4626f6c6f9625473efff92117afbc801db580ec
-
- Mar 13, 2012
-
-
Pascal Costanza authored
Ignore-this: ca8e0f6bce82e3b1e5f0b97fc0ffef67 darcs-hash:2c3857e0fea36f1db737f6d9c037c0744984039d
-
- Feb 02, 2010
-
-
Pascal Costanza authored
Ignore-this: 8562c17c6a8cc5e34d542426d3f31b17 darcs-hash:0d1655a5d920bd2f3fb3f861aba369220830180f
-
- Nov 30, 2009
-
-
Pascal Costanza authored
Ignore-this: c649a8c5246a8d79221281e70dde41a9 darcs-hash:9edb559d7cb565632dd7a455e76fd317faaea52d
-
- Nov 14, 2009
-
-
Pascal Costanza authored
Ignore-this: f6a7d875cd76c4e304be0d39fe091370 darcs-hash:44011cb51424cfe86be6744c450d40c54587404c
-
Pascal Costanza authored
Ignore-this: f50abc037fe64577b988b396d8291c42 darcs-hash:35a1db0c59d883e4aea8b44867c8e6d7eee5b594
-
- Apr 05, 2008
-
-
Pascal Costanza authored
darcs-hash:e519579766c4bddbb88ba327d872f28e9fa45dae
-
- Dec 01, 2007
-
-
Pascal Costanza authored
darcs-hash:3615712c7120653d48cbb195f90cc9822f1e5995
-
- Apr 30, 2007
-
-
Pascal Costanza authored
darcs-hash:5a45fc3ff495e26cfcdb5e31323e7c060e0bcb00
-
- Apr 21, 2007
-
-
Pascal Costanza authored
This version of ContextL (0.4) incorporates several minor and major changes as a preparation towards a 1.0 release. Here is a list of the changes: --- Changes in the visible API --- + The functions activate-layer and activate-layer-using-class have been renamed to adjoin-layer and adjoin-layer-using-class, and deactivate-layer and deactivate-layer-using-class have been renamed to remove-layer and remove-layer-using-class. The new names reflect better what these functions actually do. + Removed the functions funcall-with-layers and apply-with-layers. Use the functions funcall-with-layer-context and apply-with-layer-context instead. + The deflayer macro doesn't take a :layer-class option anymore, but instead a :metaclass option. (I have tried to abstract from the internal representation as CLOS classes, but that turns out to be useless for the time being.) --- Additions to the visible API --- + Added the functions funcall-with-layer-context and apply-with-layer-context. + Added the function current-layer-context. This captures the set of currently active layers, which can later be reinstalled with funcall-with-layer-context and apply-with-layer-context. + Added the metaclasses layered-function and layered-method. However, they should better not be used directly. For programmatically creating layered functions and methods, better use the functions ensure-layered-function and ensure-layered-method. + Added the readers layered-function-definer, layered-function-argument-precedence-order, layered-function-lambda-list. + Added the readers layered-method-lambda-list, layered-method-specializers, layered-method-layer. + Added the readers partial-class-defining-classes, partial-class-defining-metaclass and the class partial-object, which is the default superclass for partial classes. + Added the readers slot-definition-layered-readers and slot-definition-layered-writers. + You can now specify an :in-layer option in slot specifiers. This means that a slot within a define-layered-class form can be declared to be in a different layer than the respective class itself. This allows, for example, to group slots of different layers in the same define-layered-class form. + Layers and layered functions can now also have uninterned symbols as names. This enables a form of anonymous layers and anonymous layered functions when gensym is used to create names for them. + Added the function ensure-layer for programmatically creating layers. --- Internal changes, which are not necessarily visible --- + If someone tries to define default initargs for singleton classes or layers, ContextL emits a warning. The error handling is improved for the case when the :allocation for a singleton or layer-specific slot is set to something else than :class. + Some of the :in-layer keyword parameters to internal functions have previously taken lists of layers for technical reasons. This is not the case anymore. + Changed the handling of the :defining-metaclass option for partial classes. + Layered direct slot definition metaobjects don't take :layered-reader, :layered-writer and :layered-accessor initargs anymore, but rather :layered-readers and :layered-writers, which is closer to how the CLOS MOP works as well. + Added methods for print-object for the major classes and metaclasses, such that, for example, debug output now prints more nicely. darcs-hash:592a90c3f26522c79fcebd6c89449ae62c44dd41
-
- Mar 20, 2006
-
-
Pascal Costanza authored
darcs-hash:ca3929f52d4d5187e8a8f156bfd2cd2f62cb780a
-
- Mar 18, 2006
-
-
Pascal Costanza authored
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. darcs-hash:b2fb89374af06a505cd2aa36964ae632b9ab3520
-
- Mar 09, 2006
-
-
Pascal Costanza authored
darcs-hash:2f213156420b18e1032447bc5758c1ac380eb61e
-
- Mar 03, 2006
-
-
Pascal Costanza authored
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. darcs-hash:ca860e84b6f3b5f41c435553e01527345feca738
-
- Mar 02, 2006
-
-
Pascal Costanza authored
darcs-hash:33a4872db252a14daa7928a83107557d92e582bb
-