Hmm. In case anyone else has a similar problem, the blindingly stupid mistake was sloppy programming on my part. I had assumed that define-layered-method worked the same as defmethod, so I could get away without using define-layered-function first because define-layered-method would do it for me, especially since I got a warning saying that the generic function had implicitly been created. Bad assumption. It all works fine as long as you remember to use define-layered-function to create the generic first.
<br><br>Nick<br><br><div><span class="gmail_quote">On 2/20/06, <b class="gmail_sendername">Nick Bourner</b> <<a href="mailto:nickb42@gmail.com">nickb42@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>I'm having some troubles getting started with layered functions in ContextL - I keep getting undefined-function errors when I try to use a layered function, which I'd expect if I wasn't making the appropriate layer active. Transcript of a test session shown below. Can someone please tell me what blindingly stupid mistake I'm making?
<br><br>BTW I'm using sbcl 0.9.8 on OS X, but I get something similar for OpenMCL as well.<br><br><snip><br></blockquote></div><br>