Beta 2.082.0

Andre Pany andre at s-e-a-p.de
Wed Oct 17 15:47:02 UTC 2018


On Wednesday, 17 October 2018 at 15:18:43 UTC, Vladimir Panteleev 
wrote:
> On Wednesday, 17 October 2018 at 12:14:55 UTC, Martin Nowak 
> wrote:
>> Glad to announce the first beta for the 2.083.0 release, ♥ to 
>> the 48 contributors for this release.
>
> Thanks!
>
>> CppRuntime_* version identifiers -
>> https://dlang.org/changelog/2.083.0.html#cppVersions
>
> When is this different from the corresponding CRuntime version?
>
>> DUB_PACKAGE_VERSION environment variable -
>> https://dlang.org/changelog/2.083.0.html#env_var_package_version
>
> The documentation for this one seems rather sparse.
>
> - Is the environment variable set or read by Dub?
> - What is the exact syntax for its contents?
> - How does it affect the build process?
> - What are some potential use cases?

The new variable does not affect the build process. It is set by 
dub and has the content you also see by dub describe command.
In a pre command you can have a script which writes the content 
of the variable to a constant within D module. Therefore it 
becomes very easy to compile the version of your application into 
your application.

Kind regards
Andre


More information about the Digitalmars-d-announce mailing list