DMD 1.005 release

BCS BCS at pathlink.com
Wed Feb 7 11:50:50 PST 2007


Walter Bright wrote:
> BCS wrote:
> 
>> Hasan Aljudy wrote:
>>
>>>
>>> Why is that evil? I think it's actually a great idea. "versions" are 
>>> a sort of configuration that determines which code should be compiled 
>>> and which code shouldn't. Storing this configuration in a separate 
>>> file makes sense to me.
>>>
>>
>> rename versions.txt to versions.d
>>
>> and use
>>
>> import versions;
>>
>> same effect, less confusion
> 
> 
> No, versions defined in an import do NOT affect the importer.

What?? then how do you implement non trivial vertion logic?

version(Foo)
{
	// Foo alwys needs Bar
	version = Bar

	...
}

... more of the like



More information about the Digitalmars-d-announce mailing list