On 8/3/19 5:26 AM, 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__?
Dear Andrey: Perhaps this is similar to what you are looking for: https://dlang.org/spec/grammar.html#SpecialKeyword SpecialKeyword: __FILE__ __FILE_FULL_PATH__ __MODULE__ __LINE__ __FUNCTION__ __PRETTY_FUNCTION__ These are available at compile time. Kind regards.