Getters/setters generator

Mike Parker via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Dec 10 18:17:18 PST 2016


On Saturday, 10 December 2016 at 20:25:05 UTC, Mike Bierlee wrote:
> On Friday, 9 December 2016 at 10:27:05 UTC, Eugene Wissner 
> wrote:
>> It would generate 2 methods "num": one to set num_ and one to 
>> get its value.
>
> It would be great if you could generate @properties instead. I 
> like the more natural way of accessing those instead of 
> getters/setters.

What are properties if not "getters" and "setters"? From the 
original post: "It would generate 2 methods "num": one to set 
num_ and one to get its value."

Two methods named "num". No "get" or "set" in sight.


More information about the Digitalmars-d-announce mailing list