https://larsfosdal.blog/2015/03/03/anonymous-methods-and-captures-in-vcl/
Anonymous Methods and Captures in VCL