search for: set_something

Displaying 1 result from an estimated 1 matches for "set_something".

Did you mean: get_something
2004 Apr 26
7
TRW: getters and setters
Hi all, I mentioned this on the forum but wasn''t sure if anyone was paying attention. I was just wondering if it would be possible to replace the get_something/set_something style methods with the more Rubyish something/something= style (i.e. uniform access). For example, the Button class currently has button.get_label and button.set_label("foo"). It would give me warm, fuzzy feelings if I could do button.label and button.label = "foo". :) Just a...