diff: bug fix for empty typeclass decls
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Jan 22 16:56:49 AEDT 1998
On 22-Jan-1998, David Glen JEFFERY <dgj at cs.mu.OZ.AU> wrote:
> Bug fix. When there are no methods for a class, the maybe(list(pred_proc_id))
> field of the hlds_instance_defn was left as no, rather than yes([]), so
> base_typeclass_info.m bombed out when trying to generate the pointers to the
> typeclass methods.
>
> compiler/base_typeclass_info.m:
> Explicitly check for typeclasses with no methods, and set the
> mybe(list(pred_proc_id)) field to yes([]).
That looks fine.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list