Em 12/11/2009 19:29, 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 How would the refactoring engine figure out what you want to do?
We just give it some hints. To have an example of this functionality pls get a look at the page nine of http://cormas.cirad.fr/forum/cormas/old2004_2006/att-0518/01-IntroCormas_Ele...
Normally you just change the code directly in the changes browser.
I see, was my plan B, but I'm experiencing the bug I describe...
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 Looks like a bug in OCompletion. I am still using ECompletion, so I've not seen that bug before.
OK. This begs the question: which of the completions engines is supposed to be the 'official' one? Regards, -- Cesar Rabak