[mercury-users] XML Parsing (fwd)
Thomas Conway
conway at cs.mu.OZ.AU
Wed Jun 20 11:22:26 AEST 2001
On Wed, Jun 20, 2001 at 11:12:03AM EST, Michael Day wrote:
>
> > So you might get a big speed-up by making the routines monomorphically typed
> > rather than polymorphically typed, or by using the user-guided type
> > specialization pragmas (see the "pragmas" chapter in the language reference
> > manual).
>
> The predicate definition looks like this:
>
> :- pred baseChar(pstate(T1), pstate(unicode)).
> :- mode baseChar(pdi, puo) is det.
>
> Making it monomorphically typed or using the type specialization pragmas
> would require fixing T1 to a single type, I assume. This type would depend
> on whoever is calling baseChar, which at the moment is letter, which is
> also polymorphically typed.
I committed a change that corrects this a few days ago.
--
Thomas Conway )O+
<conway at cs.mu.oz.au> 499 User error! Replace user, and press any key.
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list