On Monday, 27 October 2014 at 03:42:08 UTC, ketmar via Digitalmars-d wrote:
i'm dreaming about having this as CTFE interface. one, for example, could write special module like 'core.import_resolver', DMD will load and parse it when it encounters missing import, and then evaluate some of it's well-defined API funcions that can prepare command line for the
necessary tool or even execute that tool and parse it's output.

sure, this is not safe and not secure, so such such things as "allow
import resolver to execute external programs" must be explicitly
enabled with some CLI switch.

I have brought up the idea of executing external exe's at compile time and capturing the output a few times before. Specifically for the use you just mentioned. But every time I suggest it, it gets shot down with concerns over security.

Reply via email to