When is a dynamic array really a static array?

Steven Schveighoffer schveiguy at gmail.com
Mon Dec 30 17:51:58 UTC 2019


On 12/30/19 11:16 AM, Eugene Wissner wrote:

> 
> :D foo(x[0..1]); becomes ubyte[1] in the template.

LOL! I did not expect that one. To have it bind to a static array 
parameter might be a useful feature, but it should probably prefer a 
dynamic array.

-Steve


More information about the Digitalmars-d mailing list