[Issue 7007] [] should have a type of its own

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 26 00:44:37 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7007



--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2011-11-26 00:43:39 PST ---
There are some implementation issues.

If you name an unspecified element type as 'Nothing',

auto a  = [];         // Nothing[]
auto b1 = [[]];       // Nothing[][]
auto b2 = [[], null]; // Nothing[][], but its runtime is different from b1

int[][] na1 = b1;     // may need runtime allocation and conversion
int[][] na2 = b2;     // may need runtime allocation and conversion

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list