[Issue 11172] Allow scoped assignment of version and debug statements

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 4 12:27:54 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11172


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> 2013-10-04 12:27:54 PDT ---
(In reply to comment #2)
> For example if libFoo has a version(SharedLib) block, but libBar also uses this
> same version block but for a completely different purpose you will end up
> enabling the block for both libraries even if you only wanted to do it for a
> single library.

This is exactly why version identifiers are not imported and are not affected
by who imports them. They can only be set via the command line or in the module
itself.

> It very much reminds me of a C macro.

In some ways, but C macros are extremely unhygienic. They invade the imports
and are imported from imports in a most unpleasant fashion.

> I guess you can close this, I can use
> 'static if' instead.

Thank you.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list