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

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Nov 10 03:56:35 AEDT 2000


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

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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