[m-rev.] Java: Foreign language interface support

Peter Moulder pmoulder at csse.monash.edu.au
Tue Feb 11 11:31:53 AEDT 2003


On Mon, Feb 10, 2003 at 06:01:26PM +1100, Fergus Henderson wrote:

> Does Java support `#line' or equivalent?

No it doesn't.  (Conceivably it's been added to recent versions.)

This is something of an annoyance.  The best that can be said about this
absence is that it may encourage someone to build some other framework
for translating line numbers.  An advantage is that such a framework
gives one flexibility as to which line numbers to report.  E.g. in the
case of Mercury, we currently store .c line numbers in the object files
(with C backends); we probably ought to report .m line numbers, yet
there is some advantage in reporting .c line numbers, and at other times
one would prefer seeing hlds line numbers (assuming --dump-hlds nn).  

Indeed, this is something that my supervisors want for mgdb.

As this may affect my project, what do other people think as to the
desirability of a debugger showing intermediate line numbers (hlds,
.c/.java/etc) ?

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