Okay, here is a possible migration from slots to links path:
1. Load the latest version of both FameUtil and Fame
2. Load Moose
3. Make sure all tests run.
4. Create a tower and populate the metamodel with your classes
t := FMTower new.
t metamodel addSmalltalkClasses: { ... }.
5. Run code generation with these settings
gen := FMDefaultCodeGenerator new.
gen defaultSuperClass: aSmalltalkClass.
gen defaultCategory: aString.
gen skipDerivedMethods: true.
gen visit: t metamode.
gen previewChanges.
6. Apply the changes if okey.
7. Assert that the test bar is still green.
8. Write yourself a script that kills all deprecated (slots, add,
remove, etc) methods, should be straight forward.
9. Assert that the test bar is still green.
If you need to further customize the generated code (maybe to
preserve custom initialization code, etc) it is best to subclass
FMDefaultCodeGenerator and override the appropriate methods as
needed. I have tried to take care that the logic is nicely decomposed
into different method to facilitate possible customization.
cheers,
AA
On 15 Sep 2008, at 21:49 , Stéphane Ducasse wrote:
Ok I may try.
RIght now I'm considering abandoning the port.
Stef
On Sep 15, 2008, at 9:37 PM, Adrian Kuhn wrote:
> Try Fame-akuhn.98.mcz
>
> If you have errors, I need more information to help. I am working
> on the new code generation with Links, which is working all fine
> as far I can tell. However, I do not know enough about the current
> state of Moose to be able to advise a possible migration path.
>
> cheers,
> AA
>
>
> On 15 Sep 2008, at 21:25 , Stéphane Ducasse wrote:
>
>> see above :)
>>
>> Stef
>
>