On Apr 15, 2012, at 1:20 PM, Edgar J. De Cleene wrote:
Mariano, Martin, Pavel
For example, a class can be considered either a global or a regular object. In the former case, it will be encoded just its name; in the latter case, the class will be encoded in detail, with its method dictionary, etc.
How you do this ?
the class will be encoded in detail, with its method dictionary, etc.
I export most of 1.4 OneClick classes in http://squeakros.org/Pharo%201dot4/ as cs.gz, like to have .fuel for load classes back in target image with no compiler.
Of course that can not work. .cs is source code, you of course need a compiler (if Fuel could load cs.gz, it *would be* a compiler). What you need to do is to serialize the *Objects* that are code (Classes, MethodDictioaries, CompiledMethods) using Fuel. Then the result can be loaded back using Fuel. Marcus -- Marcus Denker -- http://marcusdenker.de