DMD 1.005 release

Hasan Aljudy hasan.aljudy at gmail.com
Tue Feb 6 22:11:48 PST 2007



Walter Bright wrote:
> Ary Manzana wrote:
>> Walter Bright escribió:
>>> True, but on the other hand, specifically not supporting it in the 
>>> IDE may act as a needed brake on evil uses of it.
>> But... I'm wondering which are the evil uses of it.
> 
>  From my point of view, evil uses of it are things like version control:
> 
>     mixin(import("versions.txt"));
> 
> where versions.txt contains:
> 
>     version = FOO;
>     version = BAR;
> 
> etc., or other uses that subvert the right way to do things. One should 
> think long and hard about using textual import to import D code.

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.

> 
> What it's for is to:
> 
> 1) import data for a string constant
> 2) import code that's in DSL (Domain Specific Language), not D, form.



More information about the Digitalmars-d-announce mailing list