guile-devel
[Top][All Lists]
Advanced

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

Re: Smart variables, dumb variables


From: rm
Subject: Re: Smart variables, dumb variables
Date: Tue, 20 Aug 2002 14:01:14 +0200
User-agent: Mutt/1.3.24i

On Tue, Aug 20, 2002 at 01:29:16AM +0200, Marius Vollmer wrote:
> Marius Vollmer <address@hidden> writes:
> 
> > address@hidden writes:
> > 
> > > > Should it print #<primitive-generic +> from the start?
> > > 
> > > Since it actually _is_ a generic from the start, yes, i think it should.
> > 
> > Ok, agreed.  Objections?
> 
> Done.

Allmost, if i might say so ;-)

*---------------------------------------------------------------------------
|  
|  address@hidden:~$ guile
|  guile> (use-modules (oop goops))
|  guile> (class-of +)
|  #<<procedure-class> <procedure> 808f6f0>
|  guile> (define-method (+ (a <string>) (b <string>)) (string-append a b))
|  guile> (class-of +)guile> (class-of +)
|  #<<procedure-class> <primitive-generic> 808f690>
|  guile> address@hidden:~$ exit
|  

I don't know how easy this is to fix but this is the kind of code 
one might want to use to test whether '(define-generic foo)' has to
be called. If the class of 'foo' only changes to 'primitve-generic'
after a call to 'define-method' that doesn't really help, or?

 Ralf

But thank's anyway.
> 
> -- 
> GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405
> 
> 
> _______________________________________________
> Guile-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/guile-devel




reply via email to

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