Properties -- another one that gets me

Bill Baxter wbaxter at gmail.com
Wed Jul 29 09:47:55 PDT 2009


On Wed, Jul 29, 2009 at 8:11 AM, downs<default_357-line at yahoo.de> wrote:
> Bill Baxter wrote:
>> Just remembered this other real example of a D property that caused me
>> discomfort:
>>
>>   .transform
>>
>> I wanted it to be an unambiguous property that returns the transform
>> of an object, but it's too easy to misinterpret as an action that
>> transforms the object if it can be called as
>>
>>    .transform().
>>
>> --bb
>
> .transformed :)

It returns the affine transform itself, not a transformed object.

--bb



More information about the Digitalmars-d mailing list