What is "stringImportPaths"

mrphobby mrp at spinrock.net
Fri Dec 8 20:10:44 UTC 2017


On Thursday, 7 December 2017 at 09:47:31 UTC, Jacob Carlborg 
wrote:
> On 2017-12-06 20:05, mrphobby wrote:
> There are two kinds of language constructs that uses the 
> "import" keyword. One is the "Import Declaration" [1] which is 
> the most common one and is used to import other symbols. The 
> other language construct is the "Import Expression" [2], which 
> is used to read a file at compile time and put its content into 
> a string literal in your source code.
>
> Anything specified to the "stringImportPaths" build setting 
> will be sent to the compiler with the -J flag.
>
> [1] https://dlang.org/spec/module.html#ImportDeclaration
> [2] https://dlang.org/spec/expression.html#import_expressions

Ok thanks! I couldn't find that in the docs so kudos for pointing 
me to it.

I still think using the word "import" is confusing. Would rather 
have it called "load" or something. But at least I understand it 
now :)


More information about the Digitalmars-d-learn mailing list