[m-rev.] diff: fix mantis bug 216

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Sep 6 15:58:06 AEST 2011


On Tue, 6 Sep 2011, Zoltan Somogyi wrote:

> compile/ml_lookup_switch.m:
> 	If a lookup switch has no output variables, then do not generate
> 	a lookup table for it, since it would involve creating a structure
> 	type with no fields, which Visual C cannot handle. This can happen
> 	for semidet switches, in which the work is done by range test or
> 	a bit vector check. An example is char.is_digit.
>
> 	The corresponding module for the LLDS backend, lookup_switch.m,
> 	is already doing this.

Thanks for that -- I've also merged this onto the 11.07 branch.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list