back to arays

Bruno Medeiros brunodomedeirosATgmail at SPAM.com
Mon May 15 06:35:37 PDT 2006


Tom S wrote:
> 
> 
> As I understand it, he'd like this code:
> 
> #    int[] a = new int[20];
> #    int[] b = a;
> #    b.length = 10;
> #    writefln("%s %s", a.length, b.length);
> 
> to output '20 20'.
> 
> 

You mean "to output '10 10'", no?

-- 
Bruno Medeiros - CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d-learn mailing list