Re: question about dg

Jonathan Bachrach <[email protected]> 24 Jan 2003 09:31:10 -0500
Newsgroups gmane.comp.lang.goo.general
Message-ID <[email protected]>
Michael Vanier <[email protected]> writes:

> I've just started playing with goo, and it looks really interesting.  One
> thing I haven't figured out from the documentation is the proper role of
> dg.  It seems that dm implicitly defines a generic function, so what is the
> point of explicitly defining one with dg?

1. it allows you to define a protocol separate from an implementation, and
2. it allows you to define a generic's specializers and restrict the
domain of methods that can be added to it (otherwise they default to <any>).

jonathan