5
votes
Vote UpVote

DWScript extended language features

DelphiTools – DWScript has supported several extensions to the Delphi language since the beginning. Here are a few you may wish the Delphi compiler supported too (and not just Delphi Prism…): generalized case of, which supports non-ordinal type, for instance you can write case myString of 'hello': PrintLn('Hello!'); 'goodbye': PrintLn('See you!'); end; variables can be declared in-line anywhere in the script, allowing code like for i:=1 to 10 do begin var k : Integer; ... end; variables are always initialized, not just global or managed variables procedure MyProc; var k : Integer; ...
Favorite? Off-Topic? Eric @ 2010-09-23 12:15

Statistics

Visits: 432
Votes: 5
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Daniele Teti
ket555
knight_killer
Mohammed Nasman
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)