My thoughts & experiences with D so far, as a novice D coder

Timon Gehr timon.gehr at gmx.ch
Wed Mar 27 14:35:59 PDT 2013


On 03/27/2013 06:34 PM, Brad Anderson wrote:
> On Wednesday, 27 March 2013 at 17:23:01 UTC, Timon Gehr wrote:
>> On 03/27/2013 05:04 PM, deadalnix wrote:
>>> On Wednesday, 27 March 2013 at 15:34:20 UTC, Vidar Wahlberg
>>>> ...
>>>> - "Foo foo = new Foo();" for global variables/class members. Now you
>>>> must "Foo foo; static this() { foo = new Foo(); }".
>>>
>>> Yes, as it imply an heap allocation. It is an harder problem that it
>>> seems as all thoses object could reference themselves.
>>
>> Just serialize the CTFE object graph into the static data segment.
>
> I believe that's what this pull aims to do:
>
> https://github.com/D-Programming-Language/dmd/pull/1724

Almost. It does not support TLS, which is a severe limitation.


More information about the Digitalmars-d mailing list