in reply to (SOLVED) parsing problems with prototype blocks (precedence)
«+ foo {$t}» is found where an argument would be. An expression is expected, so «+» is treated as a unary operator, so
foo {$Q} + foo {$t}
is the same as
foo {$Q} foo {$t}
To get the desired result, you can use the following:
( foo {$Q} ) + foo {$t}
Update: Replaced "Fixed:" with clearer wording.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (SOLVED) parsing problems with prototype blocks (precedence)
by LanX (Saint) on Nov 03, 2021 at 16:25 UTC | |
by ikegami (Patriarch) on Nov 04, 2021 at 17:12 UTC |