April 27, 2004 Re: [Q] What is the real benefit of class and struct properties? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | In article <c6jcf0$g74$1@digitaldaemon.com>, Ant says... > >What is the real benefit of class and struct properties? > >I dont' see any!... >Anyone can help me? > >should I make an effored to implement then on leds intellisense? > >thanks, >Ant > > It is also easier to document: you just say class Foo has property Bar and the programmer knows that he can get the value of bar with foo.bar and set it with foo.bar. |
April 27, 2004 Re: [Q] What is the real benefit of class and struct properties? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | Ant wrote: >What is the real benefit of class and struct properties? > >I dont' see any!... >Anyone can help me? > >should I make an effored to implement then on leds intellisense? > >thanks, >Ant > I had to speak up. I like it the way things are. I think if there's going to be anything, it should be an opt out rather then an opt in. That is something like: method void value(int val) { ... } -- -Anderson: http://badmama.com.au/~anderson/ |
Copyright © 1999-2021 by the D Language Foundation