dmd/druntime/phobos makefile horror

Jonathan M Davis jmdavisProg at gmx.com
Fri Dec 16 11:09:39 PST 2011


On Friday, December 16, 2011 18:55:29 Alex Rønne Petersen wrote:
> On 16-12-2011 19:27, Jonathan M Davis wrote:
> > On Friday, December 16, 2011 18:45:01 Andrej Mitrovic wrote:
> >> On 12/16/11, Jonathan M Davis<jmdavisProg at gmx.com> wrote:
> >>> It would also kill CTFE for stuff that isn't a template.
> >> 
> >> I never thought of that.. interesting, so if you want to hide your
> >> sources your users won't be able to use CTFE. (I don't mind that, idc
> >> about any closed-source D /libraries/).
> > 
> > Templates need to be in the .di file regardless, but for anything not in
> > the .di file, you can't inline it or use it in CTFE. As such, I'm
> > generally very much against the use of .di files. We've actually had
> > some issues with stuff not being CTFEable because its source wasn't in
> > druntime's .di files.
> > 
> > - Jonathan M Davis
> 
> That does seem like a major drawback for anything open source.

Why open source? I mean, if you want to use .di files, that's a problem in 
general, but what's worse about open source? Usually, I'd expect someone to 
say that it's worse for closed source, since it makes it harder to give the 
equivalent of a header file when dealing with 3rd parties you don't want to 
give all of your code to.

- Jonathan M Davis


More information about the Digitalmars-d mailing list