tera icon indicating copy to clipboard operation
tera copied to clipboard

Arrays not supported as macro param default value

Open sirthias opened this issue 3 years ago • 1 comments
trafficstars

According to the documentation "macro arguments can have a default literal value." Also, array literals are a documented thing.

However, when I try to give a macro definition an array as a parameter default value this error is produced:

expected an integer, a float, a string, or `true` or `false`

So, something is off (in v1.15.0). Either the documentation is incorrect of the implementation is missing something.

sirthias avatar Feb 14 '22 16:02 sirthias

The documentation is incorrect, it should not list arrays as literal. But it will work on the next Tera version

Keats avatar Feb 14 '22 18:02 Keats