What Makes A Programming Language Good

nedbrek nedbrek at yahoo.com
Wed Jan 19 19:28:35 PST 2011


"Nick Sabalausky" <a at a.a> wrote in message 
news:ih7dj0$s4j$1 at digitalmars.com...
> "nedbrek" <nedbrek at yahoo.com> wrote in message 
> news:ih6o0g$2geu$1 at digitalmars.com...
>>
>> "Vladimir Panteleev" <vladimir at thecybershadow.net> wrote in message 
>> news:op.vpjlwrletuzx1w at cybershadow.mshome.net...
>>> On Wed, 19 Jan 2011 08:09:11 +0200, Austin Hastings 
>>> <ah08010-d at yahoo.com> wrote:
>>>
>>>> On 1/19/2011 12:50 AM, Vladimir Panteleev wrote:
>>>
>>> Actually, you're probably right here. To my knowledge, there are only 
>>> two build tools that take advantage of the -deps compiler option - rdmd 
>>> and xfbuild. Older ones were forced to parse the source files - rebuild 
>>> even used DMD's frontend for that. There's also a relatively new tool 
>>> (dbuild oslt?) which generates makefiles.
>>
>> Can someone tell me the corner case that requires a build tool to parse 
>> the whole source file?  My make helper is awk, it just looks for the 
>> "import" and strips out the needed info...
>>
>
> Just as a few examples:
>
> mixin("import foo.bar;");
>
> // or
>
> enum a = "import ";
> enum b = "foo.";
> enum c = "bar;";
> mixin(a~b~c);
>
> // or
>
> static if(/+some fancy condition here+/)
>    import foo.bar;
>

Thanks!

Fortunately, I am the only one on this project, so I will be careful to 
avoid such things! :)

Ned




More information about the Digitalmars-d mailing list