On Thu, 06 Sep 2012 08:44:20 +0200 Jacob Carlborg <[email protected]> wrote:
> On 2012-09-05 20:22, Nick Sabalausky wrote: > > Needs polish, but: > > > > https://bitbucket.org/Abscissa/semitwistdtools/src/977820d5dcb0/src/semitwist/util/process.d#cl-49 > > > > Usage: > > > > string str; > > > > str = q{ return 42; }; > > assert( eval!int(str) == 42 ); > > > > str = q{ return "Test string".dup; }; > > assert( eval!(char[])(str) == "Test string" ); > > I'll have to take a look at that sometime. Is it that code that calls > RDMD to compile and run it? > Yes.
