3
votes
Vote UpVote

Poll: Templates or Generics?

DelphiTools – I’m wondering about this question in the context of scripting. The poll itself is at the bottom, of this post, so you’re encouraged to read the arguments and relevant comments first Templates As a reminder, when using templates, the templated type is substituted upon template instantiation, meanings that anything you could write or perform with a “replace all” in the code, you can achieve with a template, for instance type TMySum<T> = class FSum : T; procedure Add(value : T); end; procedure TMySum.Add(value : T); begin FSum := FSum + T; end; can be ...
Favorite? Off-Topic? Eric @ 2011-04-15 10:57

Statistics

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

Visits by Source

User Actions

Users who voted for this posting

Ericc
knight_killer
Wouter
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)