Let´s assume we have the following procedure:
proc helloWorld() =
    echo "Hallo World"
Now, I want to invoke the method helloWorld given the procedure name as a string.
let procName = "helloWorld"
invoke(procName)
Is this possible in Nim? In contrast to the Java Reflection API, can this be done at compile time ?
Aucun commentaire:
Enregistrer un commentaire