DIP 1008 Preliminary Review Round 1

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Sat May 20 06:47:22 PDT 2017


On Saturday, May 20, 2017 1:36:14 PM PDT Stefan Koch via Digitalmars-d 
wrote:
> On Saturday, 20 May 2017 at 13:06:01 UTC, Jonathan M Davis wrote:
> > Yeah, especially when you're not allowed to manually allocate
> > memory in CTFE. :)
> >
> > And given that Stephan thinks that ref is too hard to implement
> > in newCTFE (IIRC from what he said at dconf anyway), I'd hate
> > to think what it would take to allow something like malloc or
> > free.
>
> Did I say that ?
>
> ref is working.

I thought you did, but I could have misremembered. Regardless, if it's
working now, all the better. :)

> unions and other ABI-related things will be tricky.

unions are useful for certain things, but really, they're pretty terrible
once you get beyond stuff like int and float. They _can_ be used safely for
more complicated stuff, but it definitely does get tricky. And I'm sure that
it's that much worse with CTFE. :(

- Jonathan M Davis



More information about the Digitalmars-d mailing list