unreserve args as keyword in macro definitions
This commit is contained in:
@@ -272,7 +272,7 @@ class Helpers {
|
|||||||
|
|
||||||
// TODO if an internal evaluation ever needs to end before its outer evaluation is done,
|
// TODO if an internal evaluation ever needs to end before its outer evaluation is done,
|
||||||
// this will cause problems because the old args will be overwritten and lost
|
// this will cause problems because the old args will be overwritten and lost
|
||||||
interps[-1].variables.set("args", args); // trippy
|
interps[-1].variables.set("__args__", args); // trippy
|
||||||
if (args != null) {
|
if (args != null) {
|
||||||
for (arg => value in args) {
|
for (arg => value in args) {
|
||||||
interps[-1].variables.set(arg, value);
|
interps[-1].variables.set(arg, value);
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ class Kiss {
|
|||||||
case Quasiquote(innerExp):
|
case Quasiquote(innerExp):
|
||||||
// This statement actually turns into an HScript expression before running
|
// This statement actually turns into an HScript expression before running
|
||||||
macro {
|
macro {
|
||||||
Helpers.evalUnquotes($v{innerExp}, k, args).def;
|
Helpers.evalUnquotes($v{innerExp}, k, __args__).def;
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
throw CompileError.fromExp(exp, 'conversion not implemented');
|
throw CompileError.fromExp(exp, 'conversion not implemented');
|
||||||
|
|||||||
Reference in New Issue
Block a user