Add CTFE execute function

Tobias Pankrath tobias at pankrath.net
Tue May 29 05:02:27 PDT 2012


On Tuesday, 29 May 2012 at 11:51:34 UTC, Gor Gyolchanyan wrote:
> On Tue, May 29, 2012 at 2:53 PM, Tobias Pankrath 
> <tobias at pankrath.net>wrote:
>
>> On Tuesday, 29 May 2012 at 10:08:51 UTC, Gor Gyolchanyan wrote:
>>
>>> Yeah, but it requires re-implementing all those tools. If you 
>>> already have
>>> them implemented in D, then it's not a problem, but if you 
>>> don't or they
>>> are closed-source, then import(filename) won't do much good.
>>>
>>>
>> You just need a two step build process.
>>
>>
>>
> Two-step build process is complicated and tedious. The point 
> here is to
> avoid senseless complications.

If you rely on third party tools for code gen, it will be 
complicated either way.

Going this path means that you have to turn the compiler into a 
full build system. That finds the right tools in the path, gives 
good error messages if they are absent, that caches results etc.




More information about the Digitalmars-d mailing list