On 11/11/2013 01:41 PM, Yuriy Tymchuk wrote:
Hi.
So if I’m not mistaken _ensure_ is meant to create referred data if it’s missing. But when you look at:
ensureClass: var
var isBehavior ifTrue: [ ^classDict at: var ]. var isSymbol ifTrue: [ ^classDict at: (self class environment at: var) ifAbsent: [ metaDict at: var asString ]]. var isString ifTrue: [ ^metaDict at: var ].
[ false ] assert.
it’s not ensuring anything. Isn’t there supposed to be something like:
metaDict at: var asString ifAbsent: [ self processClass: var asClass ]
This really frustrates me about FAME. You cannot tell it "someObj asMSE”. You have to write a tons of pragmas, then do some shenanigans with metamodels and only then you can get serialisation working. Looks like stone age. Sorry for jumping on all the things like that, it’s just that Moose - related things remind me of Java…
I am also having issues with the shenanigans of Fame. Half of the time I forget some pragma somewhere, and each time I have to create a n-to-n relationship, I have to think twice, and then think twice again.
I would really love to have a real generator: a small tool that I could use to create Fame-classes and/or relationships and that would do all the work
But for one I don't have much time, and even worst, last time I tried (on a sunny sunday afternoon), I just had to admit it was above my limited intelligence to work at three different levels of abstraction at the same time.
I have been trying to enrol some bright mind on the project, but with no success for the time being. :-(
nicolas
PS: OK, this email is not useful to the community, but I really needed to release all this frustration