CTFE and DI: The Crossroads of D

Jonathan M Davis jmdavisProg at gmx.com
Wed May 9 15:30:12 PDT 2012


On Thursday, May 10, 2012 00:18:49 Era Scarecrow wrote:
> On Wednesday, 9 May 2012 at 22:16:17 UTC, Adam Wilson wrote:
> > On Wed, 09 May 2012 15:03:21 -0700, Era Scarecrow
> > 
> > <rtcvb32 at yahoo.com> wrote:
> >> Why would this be such a big deal? As I understand it some of
> >> 
> >> this comes from D couldn't compile to libraries (if that's
> >> different now I am not sure, haven't kept up with all the
> >> updates) so everything in phobos is distributed as source.
> > 
> > Theoretically D can compile Shared Libraries now. Which means
> > that DI files are going to be more useful than ever.
> > 
> >> If we can't compile to a callable library (static or dynamic)
> >> 
> >> for a while and can't use CTFE on non-source, then the problem
> >> is more explicitly present and either needs a workaround or
> >> some type of convention.
> > 
> > CTFE cannot currently call a function without it's source.
> 
> Currently? If it can later the problem goes away...

Not going to happen for D2. CTFE would have to be completely redesigned for it 
to not need the full source. _If_ that were to ever happen, it would have to 
be in a future version of D (which may or may not ever happen but definitely 
won't happen soon).

- Jonathan M Davis


More information about the Digitalmars-d mailing list