3 ms·
To access local variables, as you can see in the example, Inspector uses libclang ahead of compile-time to generate code that captures all local variables wher
by Mic92 9y ago
To access local variables, as you can see in the example,
Inspector uses libclang ahead of compile-time to generate code that captures all local variables where the REPL is invoked.
In JVM you could probably use introspection to achieve the same at run-time. I also gave a brief presentation about the design: https://www.youtube.com/watch?v=Cl5RSlW6xAc https://www.youtube.com/watch?v=Cl5RSlW6xAc