Update RELEASE_NOTES with formula engine section
This commit is contained in:
parent
021e77f96a
commit
c1d11cb6cc
2 changed files with 16 additions and 1 deletions
|
@ -27,6 +27,21 @@ SDL version 1.2.x has been removed in favour of SDL version 2.0.x. The build sys
|
||||||
[/list]
|
[/list]
|
||||||
[/rasection]
|
[/rasection]
|
||||||
|
|
||||||
|
[rasection="Wesnoth Formula Language update"]
|
||||||
|
The Wesnoth formula language used by $(...) substitution, the formula= key in standard unit filters, and a few other places has received some significant updates. The changlog has the full list, but some highlights are:
|
||||||
|
[list]
|
||||||
|
[*]New operators for string concatenation, ranges, and testing containment
|
||||||
|
[*]New string interpolation syntax
|
||||||
|
[*]Dot operator can access identifier-friendly string keys in maps
|
||||||
|
[*]Function definitions work outside FormulaAI and GUI2
|
||||||
|
[*]Many new functions for math and string manipulation
|
||||||
|
[*]Exponentiation operator is now right-associative (meaning 2^3^2 now produces 512 rather than 64)
|
||||||
|
[*]Dice operator is now synced
|
||||||
|
[*]Improved formula debugger
|
||||||
|
[/list]
|
||||||
|
The "fai" and "faiend" keywords are deprecated in favour of "wfl" and "wflend" respectively. This is part of a move to more clearly distinguish [wiki]Wesnoth Formula Language[/wiki], the language itself, from [wiki]FormulaAI[/wiki], which is just one use of the language in Wesnoth.
|
||||||
|
[/rasection]
|
||||||
|
|
||||||
==========
|
==========
|
||||||
KNOWN BUGS
|
KNOWN BUGS
|
||||||
==========
|
==========
|
||||||
|
|
|
@ -48,7 +48,7 @@ Version 1.13.4+dev:
|
||||||
formula contexts, which means that they can be used outside FormulaAI.
|
formula contexts, which means that they can be used outside FormulaAI.
|
||||||
However, non-FormulaAI functions are currently local to the formula
|
However, non-FormulaAI functions are currently local to the formula
|
||||||
that declares them.
|
that declares them.
|
||||||
* Maps containing string keyss that are valid identifiers can now be
|
* Maps containing string keys that are valid identifiers can now be
|
||||||
indexed with the dot operator instead of the indexing operator.
|
indexed with the dot operator instead of the indexing operator.
|
||||||
* Strings can now be indexed via 'string'.char[n]. Also supported are
|
* Strings can now be indexed via 'string'.char[n]. Also supported are
|
||||||
'string'.word[n] and 'string'.item[n] (the latter splits on commas)
|
'string'.word[n] and 'string'.item[n] (the latter splits on commas)
|
||||||
|
|
Loading…
Add table
Reference in a new issue