Why version() ?

Don nospam at nospam.com
Wed Feb 11 01:14:22 PST 2009


Brian wrote:
> On Wed, 11 Feb 2009 08:51:10 +0000, Brian wrote:
> 
>> On Wed, 11 Feb 2009 14:07:29 +1100, Daniel Keep wrote:
>>> What about this?
>>>
>>> /+{{VersionIdentifier}} ... +/
>>
>> is that just a neater way to do this? version(Identifier) { mixin(`
>> //code!
>> `)}
> 
> after writing that i realized the mixin is probably evaluated even if the 
> version is false, that kind of destroys that idea.

mixin( version(Identifier) { `//code!` } else { ``});



More information about the Digitalmars-d mailing list