Possible bug when instantiating template function with nested struct

Stanislav Blinov stanislav.blinov at gmail.com
Sun Nov 7 13:28:16 UTC 2021


On Sunday, 7 November 2021 at 12:55:15 UTC, Alexandru Ermicioi 
wrote:
> On Sunday, 7 November 2021 at 12:32:17 UTC, Stanislav Blinov 
> wrote:
>> On Sunday, 7 November 2021 at 12:02:49 UTC, Alexandru Ermicioi 
>> wrote:
>>
>>> Then compiler would just lower down all T[] expressions to 
>>> Array!T, and then let druntime implement semantics of the 
>>> array.
>>
>> BetterC?..
>
> Are they working properly today though?
>

No, they don't. And won't until people stop trying to take the 
compiler's responsibilities away from it.

> Per my understanding these funcs mentioned in this thread are 
> also in druntime.

Arrays, ostensibly, are first class citizens in D, therefore 
should be implemented in the language, not a library.


More information about the Digitalmars-d mailing list