Importing version identifiers from another file?

wjoe invalid at example.com
Mon Apr 11 12:25:19 UTC 2022


On Monday, 11 April 2022 at 08:57:12 UTC, KytoDragon wrote:
> [...]
> Sadly this results in an identifier conflict, as the version 
> set in config.d does not seem to affect library.d. Is there any 
> way to import version specifiers from a separate file? I don't 
> want to pollute the users build files (dub.json etc.) with 
> dozens of versions they need to pass to the compiler.

No, version identifiers don't escape module scope.
See 24.1.4 https://dlang.org/spec/version.html for reference.


More information about the Digitalmars-d-learn mailing list