How to get name of my application (project)

Bastiaan Veelo Bastiaan at
Sat Aug 3 13:29:36 UTC 2019

On Saturday, 3 August 2019 at 09:26:03 UTC, Andrey wrote:
> Hello, how to get name of my application (project) that we 
> write in dub.json? Is there any compile-time constant like 
> __MODULE__?

The name of an application is not a compile time constant: you 
can rename the executable at any time. Like Rémy said, 
thisExePath.baseName will get you the name at run time.


More information about the Digitalmars-d-learn mailing list