Vote UpVote

Generalized class-helpers/pseudo-objects?

DelphiTools – I’ve been toying with the idea of generalized “pseudo-object syntax”, which would essentially be a form of syntax sugar. It would allow passing the first parameter of a function call with the method syntax, f.i. i.IntToStr(); i.Inc( 2 ); would be understood as being just a syntaxical variation of IntToStr( i ); Inc(i, 2); Essentially, every class-lessĀ  function/procedure could become a generalized class helper, that could operate on just about any type. Additionnally (or declaratively) you could also use a variation of the declaration f.i. function Integer.IntToString() : ...
Favorite? Off-Topic? Eric @ 2010-12-23 08:55


Visits: 532
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Charles Ardour
Daniele Teti
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)