Em 12/11/2009 19:08, Lukas Renggli <renggli@gmail.com> escreveu:
That we don't have a way to create accessor (specifically the getters) that do lazy evaluation? Lazy initialization? What do you want to do?
SomeClass>>aVariable aVariable isNil ifTrue: [aVariable := "sensible thing to do"]. ^aVariable Most of the cases you will have the creation of an object or have the variable set to zero in the block.
The way the tool works now is that if one clicks refactor->accessors you get a new window with all accessors "created" and you have to delete the ones you don't want? You can disable the preference #promptOnRefactoring to not display the changes and perform the refactoring immediately.
This is the opposite I'm searching!
And last but not least, if I attempt to edit a method in the new window "Changes: refactor class, accessors" I get an MNU: OR2AddMethodChangeNode(Object)>>doesNotUnderstand: #selectedClass. I cannot reproduce the problem in the standard OmniBrowser. I commonly edit the changes before applying the refactorings.
This is happening in an image: Pharo1.0rc1 Latest update: #10495 -- Cesar Rabak