November 28, 2005 auto - should this work? | ||||
---|---|---|---|---|
| ||||
static auto points = [[0,0],[1,0],[0,1],[1,1],[-1,-1],[-1,0],[0,-1],[-2,0],[2,0],[0,2]] ; Error: cannot infer type from initializer Error: cannot use array to initialize int |
May 22, 2006 Re: auto - should this work? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Senji Attachments: | Ivan Senji schrieb am 2005-11-28: > static auto points = [[0,0],[1,0],[0,1],[1,1],[-1,-1],[-1,0],[0,-1],[-2,0],[2,0],[0,2]] ; > > Error: cannot infer type from initializer > Error: cannot use array to initialize int Added to DStress as http://dstress.kuehne.cn/run/a/auto_18_C.d http://dstress.kuehne.cn/run/a/auto_18_B.d http://dstress.kuehne.cn/run/a/auto_18_A.d Thomas |
Copyright © 1999-2021 by the D Language Foundation