mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

There was an alternate syntax to assign anonymous functions to record fields that was never migrated to use the new lambda expression machinery (and so didn't allow referencing variables in outer scope): type myrec: record { foo: function(a: string); }; local o = "o"; local mr = myrec($foo(a: string) = { print a + o; });
1 line
11 B
Text
1 line
11 B
Text
helloworld
|