December 15, 2016 Re: Accessing members through pointers to structs (also, CTFE associative arrays) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stefan Koch | On 12/15/2016 05:30 PM, Stefan Koch wrote:
> On Thursday, 15 December 2016 at 19:30:08 UTC, Ali Çehreli wrote:
>
>> Yeah, I think the compiler is confused because the function is called
>> in a non-const context during the initialization of an immutable object.
>>
>> I would open an issue:
>>
>> https://issues.dlang.org/enter_bug.cgi?product=D
>>
>> Ali
>
> You cannot Assign Associative Arrays at compile-time.
> Because those are defined by druntime have no stable ABI.
Thanks Stefan but at least there should be a better diagnostic instead of the confusing current situation that Ali experienced.
Ali
|
December 17, 2016 Re: Accessing members through pointers to structs (also, CTFE associative arrays) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Friday, 16 December 2016 at 01:48:59 UTC, Ali Çehreli wrote:
> On 12/15/2016 05:30 PM, Stefan Koch wrote:
>> On Thursday, 15 December 2016 at 19:30:08 UTC, Ali Çehreli wrote:
>>
>>> Yeah, I think the compiler is confused because the function is called
>>> in a non-const context during the initialization of an immutable object.
>>>
>>> I would open an issue:
>>>
>>> https://issues.dlang.org/enter_bug.cgi?product=D
>>>
>>> Ali
>>
>> You cannot Assign Associative Arrays at compile-time.
>> Because those are defined by druntime have no stable ABI.
>
> Thanks Stefan but at least there should be a better diagnostic instead of the confusing current situation that Ali experienced.
>
> Ali
Ah kay. Confusing :)
Thanks again!
|
Copyright © 1999-2021 by the D Language Foundation