-
Notifications
You must be signed in to change notification settings - Fork 996
Open
Labels
enhancementNew feature or requestNew feature or requestreflectionNeeds further work on reflectionNeeds further work on reflection
Description
Hi there,
We are trying to implement function reflect for wasm target. It seems wasm has some limitations stopping us to do so. Do you guys have any thoughts on this topic? Or is this an impossible mission?
BR,
Terry
By fucntion reflect, I mean code like below:
package main
import "reflect"
func foo(x int) int {
return x
}
func bar(f reflect.Value) {
in := []reflect.Value{reflect.ValueOf(12345)}
out := f.Call(in)
println(out[0].Int())
}
func main() {
f := reflect.ValueOf(foo)
bar(f)
}pablojimpas
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestreflectionNeeds further work on reflectionNeeds further work on reflection