!define without arguments interferes with !define with arguments

0 votes
asked Dec 10, 2017 in Bug by Anthony-Gaudino (5,720 points)

This code:

!define foo called_foo1

!define foo(param) called_foo2 param

class house {
foo
foo(my_param)
}

Generates this:

class house {
called_foo1
called_foo1(my_param)
}

Instead of:

class house {
called_foo1
called_foo2 my_param
}

And also declaring as this, with empty parenthesis, causes syntax error:

!define foo() called_foo1

!define foo(param) called_foo2 param

class house {
foo
foo(my_param)
}

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...