Getters/setters generator

Eugene Wissner via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Dec 11 07:34:21 PST 2016


On Saturday, 10 December 2016 at 16:37:53 UTC, Iakh wrote:
> On Friday, 9 December 2016 at 16:30:55 UTC, Eugene Wissner 
> wrote:
>> On Friday, 9 December 2016 at 12:37:58 UTC, Iakh wrote:
>>>
>>> Is there possibility to remove affixes in generated accessor 
>>> names?
>>
>> No, there is no way to manipulate the accessor names. What 
>> affixes do you mean?
>
> You can remove suffix "_" so "name_" becomes "name". But I like
> to see genarated accessors "name" for field "m_name"

no, it isn't possible. we just hard coded the most simple and the 
most "d-style" convention.


More information about the Digitalmars-d-announce mailing list