It would be good to hardcode the version numbers and to tell that a Pharo 1.0 image has to be used: Gofer new squeaksource: 'rb'; version: 'AST-Core-lr.67'; version: 'Refactoring-Core-lr.122'; load. Pharo 1.1 won't be able to load underscore assignments anymore. Lukas On 12 April 2010 09:09, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
http://book.pharo-project.org/book/TipsAndTricks/FixingUnderscores/
:)
On Apr 12, 2010, at 12:51 AM, Fernando olivero wrote:
Hi all, i just wanted to re post the fix underscore code Lukas posted a while ago.
I've just imported Connectors package into pharo, (i'm trying to get a minimal version working ), and stumbled upon the problem of the underscores.. but now thanks to SmallInt rules it was easy and fast to overcome this problem!
Thanks!!!!
Fernando
pd: From previous mail from lukas.
1. Load the code:
 Gofer new    squeaksource: 'rb';    package: 'AST-Core';    package: 'Refactoring-Core';    load.
2. Select the code (packages) you want to fix:
 environment := BrowserEnvironment new    forPackageNames: #('Connectors-Base' 'Connectors-Lines and Curves').
3. Create the transformation rule:
 rule := RBUnderscoreAssignmentRule new.
4. Perform the search:
 SmalllintChecker runRule: rule onEnvironment: environment.
5. Perform the transformation:
 change := CompositeRefactoryChange new.  change changes: rule changes.  change execute _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli www.lukas-renggli.ch