This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Trouble understanding define (!)
Neil Jerram <neil@ossau.uklinux.net> writes:
> So once the usages of defined? are removed from define-generic,
> define-accessor and define-method, would the usage be:
>
> - define-generic and define-accessor unconditionally overwrite any
> previous definition (a la define)
>
> - define-method raises an error if its first arg is not a generic
> function
>
> ?
Yes. But, we'll be able to supply initialization arguments (#:default
and #:setter) to define-generic and define-accessor so that we can
give a default method easily at creation of the generic.