D - Any modern language should include PROPERTIES
- MV (8/8) May 26 2002 I was giving the WinD samples a quick look and it seems that the new
- Pavel Minayev (13/19) May 26 2002 It does. It's just not implemented yet. Properties are defined
- MV (4/25) May 26 2002 I am impressed. The D language is looking very robust, indeed. The
- Pavel Minayev (3/7) May 26 2002 Well, it's GMT+3 where I live. =)
- James Yates (1/2) May 27 2002 Aww, we thought you were hardcore...
- James Yates (1/2) May 27 2002 Aww, we thought you were hardcore...
- OddesE (9/11) May 29 2002 He *is*, trust me! :)
I was giving the WinD samples a quick look and it seems that the new makes it so that one would type: window.top(10); to set the top of the window to 10 instead of the more intuitive window.top = 10; It would be very convenient if D would feature properties like Delphi does. Is there a compelling reason not to have them?
May 26 2002
"MV" <luvtech pacbell.net> wrote in message news:MPG.175a2c345f4b454d989680 news.digitalmars.com...I was giving the WinD samples a quick look and it seems that the new makes it so that one would type: window.top(10); to set the top of the window to 10 instead of the more intuitive window.top = 10;It does. It's just not implemented yet. Properties are defined by a pair of functions with the same name: class Control { void top(int n) { ... } int top() { ... } } Now you can write: Control ctl; ctl.top = 10; printf("%d", ctl.top);
May 26 2002
I am impressed. The D language is looking very robust, indeed. The inclusion of properties is a wise decision. Not many people stay online at 1AM PST just to respond to my ranting on. LOL. Thank you for correcting me.I was giving the WinD samples a quick look and it seems that the new makes it so that one would type: window.top(10); to set the top of the window to 10 instead of the more intuitive window.top = 10;It does. It's just not implemented yet. Properties are defined by a pair of functions with the same name: class Control { void top(int n) { ... } int top() { ... } } Now you can write: Control ctl; ctl.top = 10; printf("%d", ctl.top);
May 26 2002
"MV" <luvtech pacbell.net> wrote in message news:MPG.175a36db4482017f989681 news.digitalmars.com...I am impressed. The D language is looking very robust, indeed. The inclusion of properties is a wise decision. Not many people stay online at 1AM PST just to respond to my ranting on. LOL. Thank you for correcting me.Well, it's GMT+3 where I live. =)
May 26 2002
Well, it's GMT+3 where I live. =)Aww, we thought you were hardcore...
May 27 2002
Well, it's GMT+3 where I live. =)Aww, we thought you were hardcore...
May 27 2002
"James Yates" <James_member pathlink.com> wrote in message news:acu0nq$25i6$1 digitaldaemon.com...He *is*, trust me! :) -- Stijn OddesE_XYZ hotmail.com http://OddesE.cjb.net _________________________________________________ Remove _XYZ from my address when replying by mailWell, it's GMT+3 where I live. =)Aww, we thought you were hardcore...
May 29 2002