Attempt to get rid of phobos Makefiles, using reggae

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 6 08:36:05 PDT 2015


On 6/6/15 5:05 AM, Atila Neves wrote:
> On Friday, 5 June 2015 at 19:17:14 UTC, Steven Schveighoffer wrote:
>> On 6/5/15 11:03 AM, Atila Neves wrote:
>>> On Friday, 5 June 2015 at 09:22:14 UTC, Jacob Carlborg wrote:
>>>> On 2015-06-04 23:50, Atila Neves wrote:
>>>>> http://dpaste.dzfl.pl/562f1ddc1aad
>>>>
>>>> Reggae doesn't support shell globbing of files? Something like:
>>>>
>>>> ExcludeFiles(["std/c/windows/**/*.d"]);
>>>
>>> Not right now, no. The good thing about how it's designed is you could
>>> write your own. Of course, the whole point is to have usable high-level
>>> builtins as well. It's a good idea, but like I said before, I hardly
>>> ever have to exclude anything in my own projects. Feel free to open an
>>> enhancement request.
>>
>> This sounds like a job for CAPTAIN RANGE!!!
>>
>> Seriously though, the thought of using ranges to allow specifying
>> files fits perfectly. Imagine the power!
>>
>> "std/c/windows/".allSubFiles.filter!(a => a.name.extension == ".d");
>>
>> Need that allSubFiles range, it probably already exists :)
>
> That... is an awesome idea.
>
> Atila

Worth a blog post. We have these wonderful facilities that can be 
combined in great surprising ways, and... nobody knows.

Andrei



More information about the Digitalmars-d mailing list