Closed ChoiSeonMun closed 5 months ago
Hi @ChoiSeonMun, your understanding is correct. Note that you can only return a lambda as a function pointer bool(*)(int, int)
only if it doesn't capture anything. Otherwise, dynamic dispatching will not work. I may need to clarify this point in the slides.
Hi there.
I came here because I was studying and had trouble understanding something intuitively. The 28th slide says that
A function can return a lambda (dynamic dispatch is also possible)
I'm wondering if the code below describes your intent.
If my understanding is not correct, could you unpack it a bit more and explain?