Properties -- another one that gets me

downs default_357-line at yahoo.de
Wed Jul 29 08:11:17 PDT 2009


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 :)



More information about the Digitalmars-d mailing list