D scripting in D

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 2 05:24:08 PDT 2017


On Friday, 2 June 2017 at 04:50:00 UTC, Mike B Johnson wrote:
> 4. Passing of the hosting D app's context. this could be pretty 
> hard to get right?

You'd ideally access the data through functions and shared value 
types instead of loading it directly. Then you can easily do it 
with shared libs or scripts or, best of all, an external process 
so if the "plugin" crashes, it doesn't crash the rest of the 
program.

This is a decent design for any program really, it decouples 
components and keeps private members private.



More information about the Digitalmars-d-learn mailing list