[m-dev.] diff: compare and unify arrays in hlc grade

Peter Ross peter.ross at miscrit.be
Fri Nov 10 04:46:33 AEDT 2000


On Fri, Nov 10, 2000 at 03:56:35AM +1100, Fergus Henderson wrote:
> On 09-Nov-2000, Peter Ross <peter.ross at miscrit.be> wrote:
> > I have since tested this change and it appears to work.
> ...
> > runtime/mercury.c:
> >     Implement the compare and unify operations for arrays in the hlc
> >     grade.
> 
> The problem with this change is that it creates a reference from the 
> Mercury runtime to the Mercury standard library.  This contravenes
> our policy of not having any such references.  The reason for this
> policy is that such references break DLL support on Windows, and
> lead to less efficient shared library support on other systems.
> 
> The right solution is probably to move that definition into
> library/array.m.  (Another possible alternative is to add a
> new function pointer variable in the runtime and to get mkinit.c
> to initialize that function pointer with the address of the
> function in the library.)
> 
that way makes more sense to me, I will do it tonight.

Pete
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list