[Top][All Lists]
[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.
- Re: namespaces, goops, etc., (continued)
- Re: namespaces, goops, etc., Michael Livshin, 2000/11/03
- Re: namespaces, goops, etc., Lars J. Aas, 2000/11/03
- Re: namespaces, goops, etc., Michael Livshin, 2000/11/03
- Re: namespaces, goops, etc., Lars J. Aas, 2000/11/03
- Re: namespaces, goops, etc., Michael Livshin, 2000/11/03
- Re: namespaces, goops, etc., Lars J. Aas, 2000/11/03
- Re: namespaces, goops, etc., Lars J. Aas, 2000/11/03
- Re: namespaces, goops, etc., Mikael Djurfeldt, 2000/11/06
- Re: namespaces, goops, etc., Michael Livshin, 2000/11/07
- Re: namespaces, goops, etc., Mikael Djurfeldt, 2000/11/08
- Re: namespaces, goops, etc.,
Mikael Djurfeldt <=
Re: namespaces, goops, etc., Mikael Djurfeldt, 2000/11/06
Re: namespaces, goops, etc., Mikael Djurfeldt, 2000/11/06
Re: namespaces, goops, etc., Jost Boekemeier, 2000/11/03
- Re: namespaces, goops, etc., Lars J. Aas, 2000/11/03
- Re: namespaces, goops, etc., thi, 2000/11/03
- Re: namespaces, goops, etc., Jost Boekemeier, 2000/11/03
- Re: namespaces, goops, etc., Michael Livshin, 2000/11/03
- Re: namespaces, goops, etc., thi, 2000/11/03
- Re: namespaces, goops, etc., Lars J. Aas, 2000/11/03
- Re: namespaces, goops, etc., thi, 2000/11/03