D-etractions A real world programmers view on D

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Thu Sep 6 01:38:24 PDT 2012


On Thu, 06 Sep 2012 08:44:20 +0200
Jacob Carlborg <doob at me.com> 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.



More information about the Digitalmars-d mailing list