host

Placed into public domain by Kris

Use this as an application-loader, where the application itself is a .obj file (or equivalent). The application is expected to have a module name of "app" and a public function conforming to the following signature:

void entry (Linker linker, char[][] args)

The application can then use the provided linker and args for whatever purpose deemed appropriate.

An example application is mule.d, which looks like so:

module app;

import std.stdio; import ddl.Linker;

public void entry (Linker linker, char[][] args) { writef ("executing ...");

foreach (char[] arg; args) writef (" %s", arg);

writefln (" ... done"); }