[m-dev.] Why don't variables have a context?

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Oct 30 15:14:02 AEDT 2006


On Mon, 30 Oct 2006, Peter Ross wrote:

> On 10/30/06, Ralph Becket <rafe at csse.unimelb.edu.au> wrote:
>> Peter Ross, Monday, 30 October 2006:
>> > Hi,
>> >
>> > I'm working on adding a pass to the compiler which outputs an XML
>> > representation of a module.  The idea is that this XML representation
>> > can then be transformed by various stylesheets into a good documentation
>> > format.
>> >
>> > One of the key parts of this is having heuristics to associate comments
>> > to parts of the program.  This is fine if we are looking for a comment
>> > related
>> > to some functor, however variables have no context associated with them,
>> > so it is impossible to do this.
>> >
>> > Is there a reason why?
>> 
>> It has always struck me as a mistake not to associate contexts with
>> variable terms.
>
> Are there objections to adding it?

No.

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