On 9 Dec 2020, at 22:28, Vern Paxson wrote:

I agree with Johanna that whatever is done, it would be best if it were consistent, and not vary with the type of the captured variable.

It already varies with type of variable for assignments and function call parameters. Thus I’m puzzled at the desire for deep-copy over shallow-copy, given that Zeek is already primarily shallow-copy.

You are right - it does, and I did not think about that at all.

That being said - at least for me, this feels differently - since accessing the variable inside the function does not obviously make it a parameter to the function. That being said - this is not a hill that I am going to die on. I am sure that I will get used to this, I just still think it is a bit counter-intuitive.

Johanna
_______________________________________________
zeek-dev mailing list -- zeek-dev@lists.zeek.org
To unsubscribe send an email to zeek-dev-le...@lists.zeek.org

Reply via email to