Type inference and overloaded functions

Ali Çehreli acehreli at yahoo.com
Tue Dec 10 20:01:09 PST 2013


On 12/10/2013 04:37 PM, Namespace wrote:

 >      int[] arr2 = [7, 8, 9]s;
 >      assert(is(typeof(arr2) == int[3]));

That looks very confusing. The left-hand side looks like a slice, which 
I can append elements to but its type is a static array?

Ali



More information about the Digitalmars-d-learn mailing list