<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi Nick,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks for finding the mistake yourself. ;)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It would indeed be nicer if a define-layered-method could automatically generate a proper layered function, not an incomplete one as is currently accidentally the case. However, I haven't yet figured out how to make this work. I will try to think about a solution...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Pascal</DIV><DIV><BR><DIV><DIV>On 20 Feb 2006, at 18:10, Nick Bourner wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">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><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">closer-devel mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:closer-devel@common-lisp.net">closer-devel@common-lisp.net</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://common-lisp.net/cgi-bin/mailman/listinfo/closer-devel">http://common-lisp.net/cgi-bin/mailman/listinfo/closer-devel</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- </DIV><DIV>Pascal Costanza, <A href="mailto:pc@p-cos.net">mailto:pc@p-cos.net</A>, <A href="http://p-cos.net">http://p-cos.net</A></DIV><DIV>Vrije Universiteit Brussel, Programming Technology Lab</DIV><DIV>Pleinlaan 2, B-1050 Brussel, Belgium</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>