On Friday, 2 June 2017 at 02:06:27 UTC, Mike B Johnson wrote:
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.
You might find the conversation on this thread interesting:
http://forum.dlang.org/thread/tssitxrniaxacpktj...@forum.dlang.org