```fun foo() { TODO() } val f = ::foo f()``` Does ...
# getting-started
c
Copy code
fun foo() { TODO() }
val f = ::foo
f()
Does this use a reflection call? Even though
KFunction
is in the
reflect
package, I would assume this particular case would be handled specially?
e
right, I think a simple
invoke
wouldn't involve any reflect machinery
other properties and functions may; iirc even
f.toString()
will cause reflection metadata to be loaded