How to detect if an array if dynamic or static

mahdi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 25 02:03:08 PST 2016


Thanks.

So when we define the function, we MUST specify the array size to 
be able to accept a static array?
Can't we just define a function which can accept any static array 
with any size? (e.g. a function to calculate average of a static 
int array of any size)?


More information about the Digitalmars-d-learn mailing list