digitalmars.D - Properties -- another one that gets me
- Bill Baxter (8/8) Jul 28 2009 Just remembered this other real example of a D property that caused me
- Ary Borenszweig (2/14) Jul 28 2009 Maybe we should start programming in another natural language and that's...
- downs (2/14) Jul 29 2009 .transformed :)
- Bill Baxter (3/17) Jul 29 2009 It returns the affine transform itself, not a transformed object.
- downs (2/21) Jul 29 2009 Oops. Not sure what I was thinking there.
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
Jul 28 2009
Bill Baxter escribió: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(). --bbMaybe we should start programming in another natural language and that's it.
Jul 28 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 :)
Jul 29 2009
On Wed, Jul 29, 2009 at 8:11 AM, downs<default_357-line yahoo.de> wrote:Bill Baxter wrote:It returns the affine transform itself, not a transformed object. --bbJust remembered this other real example of a D property that caused me discomfort: =A0 .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 =A0 =A0.transform(). --bb.transformed :)
Jul 29 2009
Bill Baxter wrote:On Wed, Jul 29, 2009 at 8:11 AM, downs<default_357-line yahoo.de> wrote:Oops. Not sure what I was thinking there.Bill Baxter wrote:It returns the affine transform itself, not a transformed object. --bbJust 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 :)
Jul 29 2009