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

Ian MacLarty maclarty at cs.mu.OZ.AU
Fri Dec 10 15:06:44 AEDT 2004


On Fri, Dec 10, 2004 at 01:34:50PM +1100, Zoltan Somogyi wrote:
> 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:
> 

Thanks, that worked.

> :- 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
> --------------------------------------------------------------------------
--------------------------------------------------------------------------
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