Vote UpVote

Delphi and the joy of Compiler Intrinsics – I cant use “Length” as a TFunc…

The Wiert Corner – One of the reasons I favour using RTL based functionality over Delphi Intrinsic Routines like Length, Abs and others is that you cannot use compiler intrinsics in Generics. For instance Length is not compatible with TFunc<string, Integer> unless you declare it yourself like function StringLength(value: string): Integer; as otherwise you get en E2029 error (in this case the cryptic '(' expected but ';' found). It’s one of the many areas where the Delphi compiler developers took a shortcut, but in this case I think the results are somewhat good. Other reasons for using the RTL over ...
Favorite? Off-Topic? jpluimers @ 2017-04-18 07:04


Visits: 721
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


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