std.experimental.logger formal review round 3
Robert burner Schadek via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 27 16:58:15 PDT 2014
On Monday, 27 October 2014 at 22:27:12 UTC, Martin Nowak wrote:
> On 10/27/2014 09:28 AM, Robert burner Schadek wrote:
>>
>> If it where done this way, yes of course you're right. But it
>> is not,
>> please take a look a the source first.
>
> I'm looking at
> https://github.com/burner/phobos/blob/logger/std/experimental/logger/core.d
> and this is exactly how this works.
>
take a look at
https://github.com/burner/phobos/blob/logger/std/experimental/logger/core.d#L190
and
https://github.com/burner/phobos/blob/logger/std/experimental/logger/core.d#L579
isLoggingActiveAt is instantiated at CT of the log function and
the version statement inside the first link is evaluated at that
moment.
Disabling a version at CT of the lib has no consequence to
compile units that are not compiled with that version statement.
I tested it at
https://github.com/burner/logger/blob/master/Makefile#L23
run "make info"
More information about the Digitalmars-d
mailing list