guile-user
[Top][All Lists]
Advanced

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

Re: Do we have to worry about the names of generic functions?


From: Rob Browning
Subject: Re: Do we have to worry about the names of generic functions?
Date: Thu, 13 May 2004 12:53:24 -0500
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Andreas Rottmann <address@hidden> writes:

> Yes, but when the non-generic are procedures, you can "upgrade" them:
>
> (define quit (ensure-generic quit))

Hmm, but since you really don't know about all the other modules out
there, it seems like the safest thing when using really general names
might be to do this for all of your exported generics.  Although that
feels a bit crufty, and I presume still doesn't protect you from
exports that aren't a procedure or a method.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4




reply via email to

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