- Mar 18, 2012
-
-
Pascal Costanza authored
Ignore-this: 6def28c9ef39e7c1623a0a83d105e3a6 darcs-hash:bb696445f432c81e90083251426f0a7a8cc51e60
-
Pascal Costanza authored
Improved separation of base and partial initargs in partial-class and layered-class, to improve extensibility in metaobject subclasses. Ignore-this: ea19afb975e9150aa48286ad9036d1df darcs-hash:636424ad65a7dee6c85be8736d4ca7db73d775fa
-
- Jan 20, 2010
-
-
Pascal Costanza authored
Ignore-this: e6dff2fca10954f0c4b4844a9172a884 darcs-hash:a448bab723dfffc7209e77b30d0ed0815ef781e9
-
- Nov 30, 2009
-
-
Pascal Costanza authored
Ignore-this: 8e718e1f96a17fb37b938a419bfbb65b darcs-hash:046cc6093f1dcfb52f45a9dbf7aab3ea4a536d30
-
- Nov 21, 2009
-
-
Pascal Costanza authored
Provide dynamic-wind in a separate system definition. Provide support for that part of ContextL for SCL. Ignore-this: 46fc99f81d7dad993879888f98c363cf darcs-hash:c31cefdbf28ca237183e26a469c207e8b3e641f9
-
- Apr 14, 2009
-
-
Pascal Costanza authored
darcs-hash:04db3b216a7c59573849752516ba6728d849603c
-
- Apr 12, 2009
-
-
Pascal Costanza authored
Removed dependencies on portable-threads and trivial-garbage, plus minor multi-threading improvements. darcs-hash:56b8fd98f2f784f29a7b1f62cd955a40790c5a69
-
- Feb 07, 2009
-
-
Pascal Costanza authored
darcs-hash:7a53a0dc61acabeafcdfcd98bc490d30157f960e
-
- Jan 01, 2009
-
-
Pascal Costanza authored
darcs-hash:3141ca64e5786904d7afd42801a55761cf40e350
-
- Nov 26, 2007
-
-
Pascal Costanza authored
Whenever a layer definition is reinitialized (for example by calling reinitialize-instance or by evaluating a deflayer form for an already existing layer), all its entries in the layer activation caches are removed. This guarantees that adjoin-layer-using-class and remove-layer-using-class are called again when such a layer is activated or deactivated, even if those two generic functions have previously returned t as second values for that layer. Since layer-makunbound is implemented in terms of (setf find-class) and (setf class-name), which triggers a call to reinitialize-instance according to the CLOS MOP specification, this means that layer-makunbound causes the respective layer to be removed from the caches as well. Likewise, if adjoin-layer-using-class and remove-layer-using-class are specialized on a particular layer metaclass, all entries for layers of that layer metaclass are also removed from the layer activation caches. This happens also when methods for these generic functions are redefined. darcs-hash:3fa63d976bbdcff0ad9a75afc1fa0db696ec8139
-
- Nov 17, 2007
-
-
Pascal Costanza authored
darcs-hash:89ac2b42b0d622ace7c09e5615f984df7bc0631d
-
- Nov 12, 2007
-
-
Pascal Costanza authored
darcs-hash:9f30880e913787179ed57884fb8c9dcfc5ec64be
-
- 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 10, 2006
-
-
Pascal Costanza authored
Added activate-layer-using-class and deactivate-layer-using-class for metacircular layer activation/deactivation. darcs-hash:a8f2ff872a966c3ab926dff7e6c22c04ac495f96
-
Pascal Costanza authored
darcs-hash:9d38c93fb54f993efee4f7b14d9041206f9873b6
-
- Mar 08, 2006
-
-
Pascal Costanza authored
darcs-hash:7cd44c27f572d8051020f7df3e21b0d6eb089b8e
-
- Mar 07, 2006
-
-
Pascal Costanza authored
Added a function call-next-layered-method as a more convenient way to perform a call-next-method with changed arguments. darcs-hash:38caf6b80e7d60c68d97b352aa3b247f202b7d15
-
- Mar 06, 2006
-
-
Pascal Costanza authored
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. darcs-hash:5f254394bca0562ec72ab0445ab7343b679d56e7
-
- Mar 05, 2006
-
-
Pascal Costanza authored
Thanks to Nick Bourner for the main idea. darcs-hash:d7776316665209947e6c0ac0854b3aaf0911fda6
-
Pascal Costanza authored
Thanks to Drew Crampsie for the main idea. darcs-hash:b7486fc468e6422849b3bd4932b21fef7e70ece8
-
- Mar 03, 2006
-
-
Pascal Costanza authored
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. darcs-hash:f862d26e676edd3e41c48c4ac4179576fcbb449a
-
- Sep 11, 2005
-
-
Pascal Costanza authored
Added safe-special-symbol-progv and special-symbol-progv, plus a few optimization tweaks in cx-layer. darcs-hash:c175ed95215a08b035ecc013bd6a517a4dce94a9
-
- Sep 10, 2005
-
-
Pascal Costanza authored
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. darcs-hash:aff71ea96cd5e5cc87944cc24bd01b5f3f5decdd
-
Pascal Costanza authored
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. darcs-hash:9b6cd3a532c1358572da6342ebd4f8391aeb4768
-
- Aug 22, 2005
-
-
Pascal Costanza authored
darcs-hash:ff9f06424ff8aa76528f8c3c9f67c9b9f5db3b37
-