[m-rev.] for review: debugging typeclass_infos

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Jan 21 12:34:20 AEDT 2004


On 19-Jan-2004, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> For review by Fergus and/or Sam.
> 
> Make it easier to debug code that handles typeclass_infos, by
> 
> - renaming the macros that access the fields of typeclass_infos and
>   base_typeclass_infos to better reflect their purpose,

I'm not sure that this helps very much, because the names "typeclass_info"
and "base_typeclass_info" are already quite misleading -- they really
give information about a type class instance, not a type class.

As a result, names like "MR_typeclass_info_param_type_info" are quite
unclear -- is it the type_info for a parameter of the instance declaration,
or a parameter of the type class?
Likewise for "MR_typeclass_info_num_params".

Otherwise that looks fine.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list