Commit graph

4 commits

Author SHA1 Message Date
Alexander Motzkau
9aa13c55b8 Add 'limit' modifier to catch()
With catch(<expr>; limit <num>) an upper limit for the eval costs of the
expression can be specified.
2023-02-27 23:11:41 +01:00
Alexander Motzkau
a152c2a3fc Prevent multiple 'reserve modifiers with #'catch
Specifying 'reserve multiple times in a lambda expression will lead to a crash.
2023-02-27 22:50:31 +01:00
Alexander Motzkau
9a89c72a92 Implement range index operator for wide mappings
Introduce a mapping index operation m[key, index1 .. index2].
(Implements #753)
2021-06-09 16:32:21 +02:00
Alexander Motzkau
b467f6908e Fix several issues with lambda()
Added test suite for lambda() and fixed some issues:
 * Special handling of string ranges didn't work.
 * Upgrade to long branches with #'? and #'?! was calculated incorrectly.
 * #'catch with 'reserve put values on the stack in wrong order.
 * #'(< didn't fail gracefully when no arguments are given.
2022-03-11 11:53:43 +01:00