www.digitalmars.com         C & C++   DMDScript  

D - Another question

reply Colin JN Breame <Colin_member pathlink.com> writes:
Is an array a class?
Apr 19 2004
parent Ilya Minkov <minkov cs.tum.edu> writes:
Colin JN Breame schrieb:

 Is an array a class?
No, for efficiency reasons. Array is a slice into memory, and is rather like a struct consisting of start pointer and length. It behaves very efficiently with most algorithms and offers a robust interface. Please, read the language reference. -eye
Apr 19 2004