[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about dg
Michael Vanier <mvanier@cs.caltech.edu> 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