Skip to content


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

meijeru opened this Issue · 2 comments

2 participants


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)
Red Programming Language member

Good catch, again!

Red Programming Language member

A proper loader error is now raised.

@dockimbel dockimbel closed this
@dockimbel dockimbel reopened this
@dockimbel dockimbel added a commit that referenced this issue
@dockimbel dockimbel FIX: additional fix for issue #288 (Formal args of parametrized macro…
…s are not constrained to (non key-)words)
@dockimbel dockimbel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.