Two question about array
Alex
faint_u at 163.com
Sun Dec 30 06:09:37 PST 2007
1. Is array a class derived from Object? If yes, why i get error message with the following code:
int[] array;
Object obj = array;
If not, is there any general type can represent either an Integer, or an Array? Or a character string?
2. simpleArray.length = simpleArray.length * 2 can pass the compile but simpleArray.length *= 2 can't. The compiler complains "simpleArray.length is not an lvalue", what's the problem?
More information about the Digitalmars-d-learn
mailing list