6
votes
Vote UpVote

Dynamic arrays for DWScript

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[10]; 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. ...
Favorite? Off-Topic? Eric @ 2011-07-04 12:02

Statistics

Visits: 580
Votes: 6
Favorites: 0
Off-Topic: 1

Visits by Source

User Actions

Users who voted for this posting

Daniele Teti
Ericc
knight_killer
Primoz Gabrijelcic
Yogi Yang
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)