DelphiTools – SVN version of DWS adds a long-missing functionality in DWS: dynamic arrays. They provide a language-based alternative to the list and collections classes that had to be used so far. They extend the “new” keyword for instantiation, and introduce pseudo-method semantics in addition to the traditional semantics for Low(), High() and Length(). var a : array of Integer; var i : Integer; a := new Integer; for i := a.Low to a.High do a[i] := i; The pseudo-methods currently available on dynamic arrays are: Low, High, Length: lower bound, higher bound and item count respectively. ...
Visits by Source
Users who voted for this posting