extern(C++) in win32.mak

rikki cattermole rikki at cattermole.co.nz
Wed Feb 7 06:18:04 UTC 2018


On 07/02/2018 6:05 AM, Paul D Anderson wrote:
> I don't understand the following line in dmd/src/win32.mak:
> 
> extern (C++) __gshared const(char)* ddoc_default = import 
> ("default_ddoc_theme.ddoc");

That is a string import (-J).

> What does the word "import" mean in this context? I can't find any 
> documentation on the use of import in this way, and the line fails to 
> compile during the make.

https://dlang.org/spec/expression.html#import_expressions




More information about the Digitalmars-d-learn mailing list