Page 1 of 1

Macro: var names with underscores

Posted: 12 Feb 2011, 16:49
by Amarock
Hello friends...

For some hour I trying to write macro and I obtain "unrecognized assignment" error.

After some tries, I discovered the that variable names in macro should not have underscore.

Code: Select all

$my_message = Hello # is wrong
$myMessage = Hello  # is good
If it's really the case, please add this information on the macro manual. :?

Re: unrecognized assignment

Posted: 12 Feb 2011, 20:48
by EternalHarvest
Amarock wrote:If it's really the case, please add this information on the macro manual. :?
Examine macro plugin's sources, discover that it's really the case.

Actually, maybe that should be fixed.

Re: unrecognized assignment

Posted: 15 Feb 2011, 18:23
by Amarock
In fact I'm a little bit confused :oops:

On the Macro manual it's indicated :
Note: Variable names may only contain letters and numbers.
I have so the habit to use underscore that I certainly imagine that is a letter... :roll:

Re: unrecognized assignment

Posted: 16 Feb 2011, 10:36
by EternalHarvest
I'm for adding underscores too (btw, macro Perl subroutine names are like that too).

Re: unrecognized assignment

Posted: 17 Feb 2011, 15:03
by kLabMouse
EternalHarvest wrote:I'm for adding underscores too (btw, macro Perl subroutine names are like that too).
Agree.