April 19, 2004 Another question | ||||
|---|---|---|---|---|
| ||||
Is an array a class? | ||||
April 19, 2004 Re: Another question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Colin JN Breame | 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
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply