Arc Forumnew | comments | leaders | submitlogin
2 points by almkglor 6064 days ago | link | parent

The main problem with having macros post errors is finding out the line number of the error.

Consider a macro which spans several lines of code. Which line had the error?



1 point by stefano 6064 days ago | link

To discover the line of the error the interpreter should provide a way to associate every form or symbol passed to the macro with its line number. As an example there could be a function such as (line-num form-with-an-error) to get the line number.

-----

1 point by almkglor 6063 days ago | link

My "attachments" idea was conceived with this potential use too - jus attach the line number to the object, which acts just like the original object (i.e. matches with 'is, etc.).

-----