[m-dev.] implementation reserved names
Julien Fischer
juliensf at csse.unimelb.edu.au
Mon Aug 14 22:34:31 AEST 2006
On Mon, 14 Aug 2006, Peter Wang wrote:
> On 2006-08-14, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>>
>> Given that the Mercury compiler is now introducing predicates behind
>> the user's back so to speak (e.g. in the implementation of constant
>> mutables and (shortly) as part of the locking mechanism for mutables)
>> it would be preferable if we could document that certain names should
>> be avoided in user code (to avoid namespace clashes etc.)
>>
>> The proposal is that all names (as defined in section 2.2 of the
>> reference manual) beginning with the prefix "mercury_compiler__" would
>> be reserved for implementation purposes.
>
> What about using submodules for this? e.g. let each module have a hidden
> `implementation' submodule.
That seems too heavyweight approach and it just shifts the problem in
a sense - i.e we now have a reserved sub-module name.
Julien.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions: mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the developers
mailing list