Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
April 04, 2022 [Issue 22987] __traits(getLocation) needs a way to get an absolute path. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22987 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> --- @maxhaton created dlang/dmd pull request #13947 "Fix Issue 22987 - Make traits getLocation have an option to return an…" fixing this issue: - Fix Issue 22987 - Make traits getLocation have an option to return an absolute path The feature is required for an application of metaprogramming within Symmetry. A flag is added rather than changing the default in case it breaks something. https://github.com/dlang/dmd/pull/13947 -- |
April 04, 2022 [Issue 22987] __traits(getLocation) needs a way to get an absolute path. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22987 Dennis <dkorpel@live.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dkorpel@live.nl Severity|normal |enhancement -- |
December 17, 2022 [Issue 22987] __traits(getLocation) needs a way to get an absolute path. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22987 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P4 -- |
March 26 [Issue 22987] __traits(getLocation) needs a way to get an absolute path. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22987 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> --- Why not use: https://dlang.org/phobos/std_path.html#absolutePath -- |
March 26 [Issue 22987] __traits(getLocation) needs a way to get an absolute path. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22987 Richard Cattermole <alphaglosined@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alphaglosined@gmail.com --- Comment #3 from Richard Cattermole <alphaglosined@gmail.com> --- (In reply to Walter Bright from comment #2) > Why not use: > > https://dlang.org/phobos/std_path.html#absolutePath That would require knowing the base address to make absolute against. For build systems like dub, that information may very well not exist, or be assumable. You have to make assumptions to reconstruct information that the compiler could just tell you. That is not a good solution, it is a workaround at best. Not to mention cross compilation could result in a wrong result if it works at all. -- |
Copyright © 1999-2021 by the D Language Foundation