On Friday, 16 June 2017 at 18:13:33 UTC, Seb wrote:
On Friday, 16 June 2017 at 07:57:46 UTC, Mike B Johnson wrote:
I am developing a D app and I have a need to test things out. I do not want to have to recompile the app every time I want to test some functionality out.

[...]

There is drepl, it's not fancy, but works for basic use cases...

https://github.com/drepl/drepl


But that doesn't interface with ones own program? I'm not talking about a standalone repl but something what can use from their own program and then use that command line interface of it(or just send command through text) and interact with the original program:

string foo() { writeln("foo"); }
void main()
{
    repl.init();
    writeln(repl.exec("foo()"));
    writeln(repl.exec(readline()));
repl.OpenInterface(); // <- A new command window is open that lets us run code from it, code that has access to this programs code.
}


Or whatever.

Reply via email to