From seth at tewebs.com Sun Aug 23 14:48:27 2009 From: seth at tewebs.com (Seth Burleigh) Date: Sun, 23 Aug 2009 09:48:27 -0500 Subject: [closer-devel] Define-Layered-Function Error in Sbcl 1.0.29 Message-ID: <000001ca2400$c6c1a5a0$5444f0e0$@com> When calling (define-layered-function display-object (object)) with the latest version of context and closer-mop I get STYLE-WARNING: redefining =LAYERED-FUNCTION-DEFINER-FOR-DISPLAY-OBJECT= in DEFGENERIC Cannot CHANGE-CLASS objects into GENERIC-FUNCTION metaobjects. [Condition of type SB-PCL::METAOBJECT-INITIALIZATION-VIOLATION] 0: [RETRY] Retry SLIME REPL evaluation request. 1: [ABORT] Return to SLIME's top level. 2: [ABORT] Abort 3: [CLOSE-CONNECTION] Close SLIME connection 4: [ABORT] Exit debugger, returning to top level. Expanding, the problem is in this form (DEFGENERIC =LAYERED-FUNCTION-DEFINER-FOR-DISPLAY-OBJECT= (layer-arg OBJECT) (:GENERIC-FUNCTION-CLASS LAYERED-FUNCTION) (:ARGUMENT-PRECEDENCE-ORDER OBJECT layer-arg)) (DECLAIM (INLINE DISPLAY-OBJECT)) Apparently, it doesn't like the layered-function argument. Any ideas how to fix this? I have absolutely no experience in making new CLOS protocols. Thx! -------------- next part -------------- An HTML attachment was scrubbed... URL: From pc at p-cos.net Sun Aug 23 16:39:35 2009 From: pc at p-cos.net (Pascal Costanza) Date: Sun, 23 Aug 2009 18:39:35 +0200 Subject: [closer-devel] Define-Layered-Function Error in Sbcl 1.0.29 In-Reply-To: <000001ca2400$c6c1a5a0$5444f0e0$@com> References: <000001ca2400$c6c1a5a0$5444f0e0$@com> Message-ID: <67CB3B16-D639-40CD-8B81-955863259EF7@p-cos.net> This should work correctly, and some superficial tries at doing this myself in SBCL 1.0.30 with the current versions of ContextL and Closer to MOP as they are found in the source repositories, everything seems to be fine. Can you give me more information about your setup? What version of SBCL do you use, what versions of ContextL and Closer to MOP (can be found in the ASDF files)? What did you do before you tried this? Did you run some of the test programs provided with ContextL? Does the error occur also when you do this in a freshly started SBCL with ContextL just loaded? Best, Pascal On 23 Aug 2009, at 16:48, Seth Burleigh wrote: > When calling (define-layered-function display-object (object)) with > the latest version of context and closer-mop > I get > > STYLE-WARNING: > redefining =LAYERED-FUNCTION-DEFINER-FOR-DISPLAY-OBJECT= in > DEFGENERIC > Cannot CHANGE-CLASS objects into GENERIC-FUNCTION metaobjects. > [Condition of type SB-PCL::METAOBJECT-INITIALIZATION-VIOLATION] > 0: [RETRY] Retry SLIME REPL evaluation request. > 1: [ABORT] Return to SLIME's top level. > 2: [ABORT] Abort > 3: [CLOSE-CONNECTION] Close SLIME connection > 4: [ABORT] Exit debugger, returning to top level. > > Expanding, the problem is in this form > > (DEFGENERIC =LAYERED-FUNCTION-DEFINER-FOR-DISPLAY-OBJECT= > (layer-arg OBJECT) > (:GENERIC-FUNCTION-CLASS LAYERED-FUNCTION) > (:ARGUMENT-PRECEDENCE-ORDER OBJECT layer-arg)) > (DECLAIM (INLINE DISPLAY-OBJECT)) > > Apparently, it doesn?t like the layered-function argument. Any ideas > how to fix this? I have absolutely no experience > in making new CLOS protocols. > Thx! > > _______________________________________________ > closer-devel mailing list > closer-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/closer-devel -- Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net Vrije Universiteit Brussel Software Languages Lab Pleinlaan 2, B-1050 Brussel, Belgium -------------- next part -------------- An HTML attachment was scrubbed... URL: