Are function evaluated at Lambda declaration ?

10 views
Skip to first unread message

Nicolas

unread,
Oct 14, 2023, 12:05:31 PM10/14/23
to vim_use
Hi,

Is this line declaration in vim9script evaluate the LogX_FOOBAR function or not ?


  var LambdDetectInLine: func = function('LogX_FOOBAR',
                                      [ LogX.pattern.start.func, LogX.codefunc]) # lambda like function 


Thank you
Nicolas

Yegappan Lakshmanan

unread,
Oct 14, 2023, 4:47:33 PM10/14/23
to vim...@googlegroups.com
Hi,

The function is not invoked at the time of assigning a funcref variable.  But the function
will be compiled.

- Yegappan

Reply all
Reply to author
Forward
0 new messages