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

Formal args of parametrized macros are not constrained to (non key-)words #288

Closed
meijeru opened this issue Nov 1, 2012 · 2 comments
Closed
Labels
Red/System status.built A change in codebase has been done to address the ticket. status.tested The change in code has been manually tested and verified to fix the issue. type.bug Ticket describes an abnormal behavior, not conforming to the specs or expectation.
Milestone

Comments

@meijeru
Copy link
Contributor

meijeru commented Nov 1, 2012

It is possibe to use reserved keywords as args. It is also possible to specifiy other literals (numbers, strings) as args, but these are ignored in the arg list and used literally in the body, without warning.

#define a(b not) [b + not] print a(1 2) ; prints 3

#define a(b 5) [b + 5] print a(1 2) ; prints 6, not 3

#define a(b "c") [b + "c"] print a(1 2) ; error in code-generation (adding an integer to a string)
@dockimbel
Copy link
Member

Good catch, again!

dockimbel added a commit that referenced this issue Nov 4, 2012
@dockimbel
Copy link
Member

A proper loader error is now raised.

@dockimbel dockimbel reopened this Nov 5, 2012
dockimbel added a commit that referenced this issue Nov 5, 2012
…s are not constrained to (non key-)words)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Red/System status.built A change in codebase has been done to address the ticket. status.tested The change in code has been manually tested and verified to fix the issue. type.bug Ticket describes an abnormal behavior, not conforming to the specs or expectation.
Projects
None yet
Development

No branches or pull requests

2 participants