[Issue 19669] There is no way for code to detect whether -dip1000 is enabled or not

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 4 05:04:48 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=19669

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|---                         |INVALID

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to ZombineDev from comment #2)
> IMO, https://dlang.org/spec/traits.html#getTargetInfo should be able to give
> you all specified compiler flags, not just -dip1000.

That would be an enhancement request. Seb has shown how to reliably detect if
-dip1000 is thrown, so this issue is resolved.

(In general, doing things in the existing language is better than adding more
features.)

--


More information about the Digitalmars-d-bugs mailing list