[m-rev.] diff: add contexts to MC++

Tyson Dowd trd at cs.mu.OZ.AU
Thu Apr 12 00:47:00 AEST 2001


On 11-Apr-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 11-Apr-2001, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> > Add context information to Managed C++.
> > 
> > compiler/mlds_to_c.m:
> > 	Export mlds_to_c__output_context.
> > 
> > compiler/mlds_to_ilasm.m:
> > 	Write contexts before writing code.
> 
> That's not enough; you also need to output #line directives
> to reset the context afterwards (using c_util__reset_line_num).
> Otherwise the line numbers for any code which follows the
> hand-written Managed C++ code will be wrong.

But that's *generated* code so it is of course 100% correct!



(Consider it on the to-do list).

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
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