[m-rev.] For review: Allow custom functor to element mappings in term_to_xml

Zoltan Somogyi zs at cs.mu.OZ.AU
Fri Dec 10 13:34:50 AEDT 2004


On 10-Dec-2004, Ian MacLarty <maclarty at cs.mu.OZ.AU> wrote:
> :- func can_generate_dtd(element_mapping, type_desc) = dtd_generation_result.
> :- mode can_generate_dtd(in(element_mapping), in) = out is det.
> 
> Note that predmode syntax doesn't seem work in this case (I get an
> "unrecognised declaration" error).

You need to use ()s:

:- func can_generate_dtd(element_mapping::in(element_mapping), type_desc::in)
	= (dtd_generation_result::out) is det.

> No, Zoltan was going to have a look at fixing this, but I'm happy to create a
> test case if you think that's a good idea.

I am working on it, and I have a test case. Ian should go forward without it.

Zoltan.
--------------------------------------------------------------------------
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