[m-rev.] for review: ordering the items in interface files

Ralph Becket rafe at cs.mu.OZ.AU
Mon Mar 21 11:46:27 AEDT 2005


Zoltan Somogyi, Sunday, 20 March 2005:
> For review by Julien.
> 
> compiler/modules.m:
> 	Put lists of items into an approximation of a standard order
> 	when generating interface files. This should reduce the number
> 	of times modules are unnecessarily recompiled because of a change
> 	in a module that *reorders* its exported items without *changing*
> 	the set of exported items.

The change looks good, but it's not clear to me why you can't traverse
the list of items collecting interface and implementation sections as
you go (i.e., regardless of how many top-level interface sections there
are in the source file, there should be only one in the interface file).
Nested sub-modules complicate matters somewhat, but my intuition is that
you would still end up with simpler sorting code.  What am I missing?

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