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…
Uko