[Pharo-project] fuel and a factory
Just out of curiosity is there a way to specify the class that should be used when loading a fuel saved objects. For example I would like to know if it is possible to save Booleans and load them as instance of another class MBoolean of course boolean is a bit extreme :) but for a bootstrap we may need that. Stef
On Sun, Nov 27, 2011 at 7:44 AM, Stéphane Ducasse <stephane.ducasse@inria.fr
wrote:
Just out of curiosity is there a way to specify the class that should be used when loading a fuel saved objects. For example I would like to know if it is possible to save Booleans and load them as instance of another class MBoolean
Not a clean out-of-the-box hook that I can imagine. In fact, it seems exactly the same feature Yanni is missing: http://forum.world.st/class-rename-and-Fuel-td4108831.html. Right?
of course boolean is a bit extreme :) but for a bootstrap we may need that.
Stef
-- Mariano http://marianopeck.wordpress.com
On 27/11/11 8:31 AM, Mariano Martinez Peck wrote:
On Sun, Nov 27, 2011 at 7:44 AM, Stéphane Ducasse <stephane.ducasse@inria.fr <mailto:stephane.ducasse@inria.fr>> wrote:
Just out of curiosity is there a way to specify the class that should be used when loading a fuel saved objects. For example I would like to know if it is possible to save Booleans and load them as instance of another class MBoolean
Not a clean out-of-the-box hook that I can imagine. In fact, it seems exactly the same feature Yanni is missing: http://forum.world.st/class-rename-and-Fuel-td4108831.html. Right?
Not the same problem, since it was the class object itself that was being referenced in a Pier security permissions object.
Hi We plan add some option to rename at materialization time, like: FLMaterializer newDefault classRenames: { #Boolean -> #MBoolean }; materializeFrom: aFile. I guess we shouldn't only pay attention to rename the classes but also rename the symbol: If you have a compiled method that references to #Boolean, the literal has to be updated too. MartÃn On Sun, Nov 27, 2011 at 1:59 PM, Yanni Chiu <yanni@rogers.com> wrote:
On 27/11/11 8:31 AM, Mariano Martinez Peck wrote:
On Sun, Nov 27, 2011 at 7:44 AM, Stéphane Ducasse <stephane.ducasse@inria.fr <mailto:stephane.ducasse@**inria.fr <stephane.ducasse@inria.fr>>> wrote:
Just out of curiosity is there a way to specify the class that should be used when loading a fuel saved objects. For example I would like to know if it is possible to save Booleans and load them as instance of another class MBoolean
Not a clean out-of-the-box hook that I can imagine. In fact, it seems exactly the same feature Yanni is missing: http://forum.world.st/class-**rename-and-Fuel-td4108831.html<http://forum.world.st/class-rename-and-Fuel-td4108831.html> **. Right?
Not the same problem, since it was the class object itself that was being referenced in a Pier security permissions object.
participants (4)
-
Mariano Martinez Peck -
Martin Dias -
Stéphane Ducasse -
Yanni Chiu