guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: namespaces, goops, etc.


From: Mikael Djurfeldt
Subject: Re: namespaces, goops, etc.
Date: 07 Nov 2000 01:55:38 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

Michael Livshin <address@hidden> writes:

> > guile> (define (hiho)
> >   ;; define the generic locally:
> >   (define-generic foo)
> >   ;; now happily specialize it:
> >   (define-method foo ((x <top>) x)))
> > guile> (hiho)
> > ERROR: In procedure cadr:
> > ERROR: Wrong type argument in position 1: (address@hidden foo)
> > ABORT: (wrong-type-arg)
> 
> [ I wonder why all my blind assumptions turn out wrong today? ]
> 
> mea culpa.
> 
> but it *should* work, I think.  ditto for `define-class'.
> 
> should ask Mikael if this is supposed to be this way...

The error you see above is due to a bug in the old macro system.

Actually, `define-class', `define-generic', and, `define-method' are
all supposed to be top-level forms and not allowed in other contexts.
There should be error checking in the last two as well.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]