Define methods using templates
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Dec 30 11:10:23 PST 2014
On 12/30/2014 05:17 AM, Claude wrote:
> use templates to define several methods (property
> setters) within a class to avoid some code duplication.
I just saw this post, which is essentially the same question as Basile
Burg's. I hope that a college (in France?) is teaching D and that this
is a homework assignment. Cool stuff! :)
Ali
More information about the Digitalmars-d-learn
mailing list