View source code
Display the source code in dmd/root/response.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.root.response.responseExpandFrom

Expand any response files in command line. Response files are arguments that look like: @NAME The names are resolved by calling the 'lookup' function passed as a template parameter. That function is expected to first check the environment and then the file system. Arguments are separated by spaces, tabs, or newlines. These can be imbedded within arguments by enclosing the argument in "". Backslashes can be used to escape a ". A line comment can be started with #. Recursively expands nested response files.

const(char)* responseExpandFrom(alias lookup) (
  ref Strings args
) nothrow;

To use, put the arguments in a Strings object and call this on it.

Digital Mars's MAKE program can be notified that a program can accept long command lines via environment variables by preceding the rule line for the program with a *.


lookup alias to a function that is called to look up response file arguments in the environment. It is expected to accept a null- terminated string and return a mutable char[] that ends with a null-terminator or null if the response file could not be resolved.
args array containing arguments as null-terminated strings


null on success, or the first response file that could not be found


Walter Bright


Boost License 1.0