Discussion:
Define-Layered-Function Error in Sbcl 1.0.29
Seth Burleigh
2009-08-23 14:48:27 UTC
Permalink
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!
Pascal Costanza
2009-08-23 16:39:35 UTC
Permalink
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
Post by Seth Burleigh
When calling (define-layered-function display-object (object)) with
the latest version of context and closer-mop
I get
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
http://common-lisp.net/cgi-bin/mailman/listinfo/closer-devel
--
Pascal Costanza, mailto:***@p-cos.net, http://p-cos.net
Vrije Universiteit Brussel
Software Languages Lab
Pleinlaan 2, B-1050 Brussel, Belgium
Loading...