Join Slack
Powered by
Is it not possible to call an inline lambda with a...
# announcements
b
bartvh
11/14/2018, 10:44 AM
Is it not possible to call an inline lambda with another inline lambda as argument? Conceptually I think it should be, but I guess the compiler does not actually support it? I get an
illegal usage of inline argument block
error
-.txt
bartvh
11/14/2018, 10:44 AM
Crosspost:
https://stackoverflow.com/questions/53298025/call-inline-lambda-with-another-inline-lambda-argument
a
Andreas Sinz
11/14/2018, 1:06 PM
Conceptually it works, only if
body
is `crossinline`d and the parameter of
enter
is `inline`d too (which is not the case here)
👍 1
Andreas Sinz
11/14/2018, 1:29 PM
why do you need two different function parameters?
b
bartvh
11/15/2018, 1:58 PM
I don't actually, so you can ignore the concept of this function
k
karelpeeters
11/15/2018, 2:00 PM
Still, it's something that could be implemented by the compiler.
3
Views
Open in Slack
Previous
Next