tuple can write [],but can't read []

Andrea Fontana via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 29 02:38:43 PDT 2014


On Tuesday, 29 April 2014 at 09:23:03 UTC, FrankLike wrote:
> Hi,erveryone,
> [...]
> 	xy2[1][0]=100;  // can write
> [...]
> 	writeln(xy2[0][i]); //  can't read
> [...]

If I'm right, index should be a compile-time value.





More information about the Digitalmars-d mailing list