On 12/11/20 1:47 AM, Robin Sommer wrote:
Sounds like a way forward then to both address the current concern,
and improve this overall. Does this work for everybody?
Yes for me, just one comment: I'm a bit nervous about getting too
inspired by C++ syntax. With every new standard round it's looking more
like control character soup. Vern, I'm not sure what you had in mind
here ... but perhaps instead of something very close to C++, like
local f = function[=]() { print r$i; };
to capture that I'd like r to be a deep copy, maybe we could consider
something more Zeek-style, perhaps via attributes:
local f = function() &deepcopy { print r$i; };
for all variables or
local f = function() &deepcopy=r { print r$i; };
just for r, with shallow-copy the default. More typing, yes, but
arguably less cryptic, and this is likely a relatively rarely used feature.
Best,
Christian
_______________________________________________
zeek-dev mailing list -- zeek-dev@lists.zeek.org
To unsubscribe send an email to zeek-dev-le...@lists.zeek.org