D scripting in D

Mike B Johnson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 1 19:06:27 PDT 2017


I wonder if it is possible to somehow turn D in to a scripting 
language that can be run inside D?

The point? To have the same uniform syntax for quickly developing 
scripts that can then be easily transferred, if desired, in to a 
complete binary.

e.g., suppose I am working in some type of analysis software. Use 
a Dscript like feature to develop and test different analysis 
algorithms quickly(rather than using the compile and execute 
model)... then once everything is working, move the code to a D 
file and compile it directly.

Since the syntax would be identical(or nearly so) it would be 
quite easy to copy and paste... unlike, say, using lua or some 
other non-D like scripting language.


More information about the Digitalmars-d-learn mailing list