Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Gambit-y errors from the macro expander #9

Open
per-gron opened this issue Mar 19, 2010 · 1 comment
Open

More Gambit-y errors from the macro expander #9

per-gron opened this issue Mar 19, 2010 · 1 comment

Comments

@per-gron
Copy link
Owner

Right now, macro expansion errors are reported with the error procedure. For instance, (cond-expand a) generates the error *** ERROR IN ##main -- Invalid cond-expand form: (cond-expand a), but this is not optimal, since it doesn't give information about the source location. In Gambit there is a procedure called c#compiler-user-error which is used internally to generate Gambit's error messages. It might be better to use that instead of just error.

I'm not entirely sure that this is a desirable thing, but I think so. Fixing this would mean to implement a small utility function that calls c#compiler-user-error and put it in util.scm, and then searching through the calls to error in hygiene.scm, replacing the calls where appropriate.

@alvatar
Copy link
Contributor

alvatar commented Jan 22, 2012

Vote for this feature :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants