DelphiTools – In the SVN version, DWScript now has experimental support for helpers. This is a generalization of Delphi’s class helpers, which can be applied to (almost) any type. You can also have multiple helpers per type. The syntax if currently the following: type TMyHelper = helper for some_type_here private ...private helper methods, class vars & class consts... public ...public helper methods, class vars & class consts... end; You can have helpers for base types, classes, records, interfaces or arrays. For instance if you write type TFloatHelper = ...
Visits by Source
Users who voted for this posting