Skip to content

Commit

Permalink
Update RELEASE_NOTES with formula engine section
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 19, 2016
1 parent 021e77f commit c1d11cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions RELEASE_NOTES
Expand Up @@ -27,6 +27,21 @@ SDL version 1.2.x has been removed in favour of SDL version 2.0.x. The build sys
[/list]
[/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
==========
Expand Down
2 changes: 1 addition & 1 deletion changelog
Expand Up @@ -48,7 +48,7 @@ Version 1.13.4+dev:
formula contexts, which means that they can be used outside FormulaAI.
However, non-FormulaAI functions are currently local to the formula
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.
* Strings can now be indexed via 'string'.char[n]. Also supported are
'string'.word[n] and 'string'.item[n] (the latter splits on commas)
Expand Down

0 comments on commit c1d11cb

Please sign in to comment.