ndslice: feature deprecation voting / discussion

Ilya Yaroshenko via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 2 08:32:29 PDT 2016


On Sunday, 2 October 2016 at 15:31:35 UTC, Ilya Yaroshenko wrote:
> On Sunday, 2 October 2016 at 14:23:02 UTC, rikki cattermole 
> wrote:
>> On 03/10/2016 3:02 AM, Ilya Yaroshenko wrote:
>>> [...]
>>
>> Will dmd store void func(int[]), func([1, 2]) the array onto 
>> the stack?
>> If it doesn't then T[] v... would be better which will accept 
>> both.
>>
>> It also won't increase template bloat.
>>
>> ---
>> This email has been checked for viruses by Avast antivirus 
>> software.
>> https://www.avast.com/antivirus
>
> (size_t v)(T[N] v...) accepts both without memory allocation. 
> This is used in current implementation.

EDIT: (size_t N)(size_t[N] v...)


More information about the Digitalmars-d mailing list