October 24, 2002 Re: array length question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sandor Hojtsy | "Sandor Hojtsy" <hojtsy@index.hu> wrote in message news:aolk6c$1g2q$1@digitaldaemon.com... > Ok, so you now have a fast array type, which is a good thing in some > situations. > Now we have to think about creating a separate full-featured array *class*, > possibly in the standard library, with [] operator overload and self-encapsulation, and ... well ... poorer performance than the built-in array. I have thought about enabling operator [] overload for classes, that way you can create your own 'array' semantics. |
October 24, 2002 Re: array length question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | > > I have thought about enabling operator [] overload for classes, that way you > can create your own 'array' semantics. > I think indexable properties (delphi/C#) are better than just overloading [] and more flexable. |
Copyright © 1999-2021 by the D Language Foundation