* Re: new module directive? [was: Three real-life questions]
@ 2004-04-16 6:06 Michael Burschik
2004-04-16 13:58 ` new module directive? Andreas Rottmann
0 siblings, 1 reply; 2+ messages in thread
From: Michael Burschik @ 2004-04-16 6:06 UTC (permalink / raw)
Andreas Rottmann says:
> The hairy thing is when you want to override (extend) a non-generic
> with a generic. #:re-export won't work in this case and #:export gives
> a warning.
This is pretty nasty, especially since #:re-export gives no indication of
not working, and I did not, in fact, notice that it does not. I extended
equal? with a generic and it seemed to work as expected when I used
#:re-export. Was this simply a coincidence, or is equal? generic anyway?
Regards
Michael Burschik
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: new module directive?
2004-04-16 6:06 new module directive? [was: Three real-life questions] Michael Burschik
@ 2004-04-16 13:58 ` Andreas Rottmann
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Rottmann @ 2004-04-16 13:58 UTC (permalink / raw)
"Michael Burschik" <Burschik@lotto-berlin.de> writes:
> Andreas Rottmann says:
>
>> The hairy thing is when you want to override (extend) a non-generic
>> with a generic. #:re-export won't work in this case and #:export gives
>> a warning.
>
> This is pretty nasty, especially since #:re-export gives no indication of
> not working, and I did not, in fact, notice that it does not. I extended
> equal? with a generic and it seemed to work as expected when I used
> #:re-export. Was this simply a coincidence, or is equal? generic anyway?
>
As soon GOOPS is loaded, equal? is changed to a
"primitive-generic". IMHO, it would be nice if that would happen for
every procedure...
guile> equal?
#<primitive-procedure equal?>
guile> (use-modules (oop goops))
guile> equal?
#<primitive-generic equal?>
Andy
--
Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at
http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
Make free software, not war!
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-16 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 6:06 new module directive? [was: Three real-life questions] Michael Burschik
2004-04-16 13:58 ` new module directive? Andreas Rottmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).