[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-06 Thread Offray Vladimir Luna Cárdenas
Hi, I have was able to implement Sven's suggestion and it worked pretty well regarding the serialization of objects containing clean blocks, as you can see on [1]. [1] https://mutabit.com/repos.fossil/dots/file?name=brea/theme.ston=trunk A Brea theme is now represented in a pretty light weight

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-05 Thread Stéphane Ducasse
and you can send PR to improve it :) > On 5 Dec 2020, at 00:23, Offray Vladimir Luna Cárdenas > wrote: > > Ohhh :-O ... where is the STON booklet. I would love to read it. > > Thanks, > > Offray > > On 4/12/20 3:24 p. m., Stéphane Ducasse wrote: >> Done :) >> >> >>> On 4 Dec 2020, at

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-05 Thread Sven Van Caekenberghe
https://github.com/SquareBracketAssociates/Booklet-STON/releases/tag/continuous > On 5 Dec 2020, at 00:23, Offray Vladimir Luna Cárdenas > wrote: > > Ohhh :-O ... where is the STON booklet. I would love to read it. > > Thanks, > > Offray > > On 4/12/20 3:24 p. m., Stéphane Ducasse wrote: >>

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-04 Thread Offray Vladimir Luna Cárdenas
Ohhh :-O ... where is the STON booklet. I would love to read it. Thanks, Offray On 4/12/20 3:24 p. m., Stéphane Ducasse wrote: > Done :) > > >> On 4 Dec 2020, at 21:20, Stéphane Ducasse > > wrote: >> >> It looks like it is recurring  enough to be part of the

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-04 Thread Sven Van Caekenberghe
Thx! > On 4 Dec 2020, at 21:24, Stéphane Ducasse wrote: > > Done :) > > >> On 4 Dec 2020, at 21:20, Stéphane Ducasse wrote: >> >> It looks like it is recurring enough to be part of the Ston booklet :) >> >> I will add it. >> >> S. >> >>> On 1 Dec 2020, at 10:54, Sven Van Caekenberghe

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-04 Thread Stéphane Ducasse
Done :) > On 4 Dec 2020, at 21:20, Stéphane Ducasse wrote: > > It looks like it is recurring enough to be part of the Ston booklet :) > > I will add it. > > S. > >> On 1 Dec 2020, at 10:54, Sven Van Caekenberghe > > wrote: >> >> Hi Offray, >> >> This is a recurring

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-04 Thread Stéphane Ducasse
It looks like it is recurring enough to be part of the Ston booklet :) I will add it. S. > On 1 Dec 2020, at 10:54, Sven Van Caekenberghe wrote: > > Hi Offray, > > This is a recurring question. BlockClosures are way too general and powerful > to be serialised. That is why serialising

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-01 Thread Offray Vladimir Luna Cárdenas
Hi Sven, Thanks for your swift and useful response as usual and yes, not only it helps a lot but teach too (as usual with your answers). I will be dealing with some bureaucratic last minute, hard deadline notification I just got yesterday from my university (following local "tradition" in public

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-01 Thread Sven Van Caekenberghe
Hi Offray, This is a recurring question. BlockClosures are way too general and powerful to be serialised. That is why serialising BlockClosures is not supported in STON. The code inside a block can refer to and even affect state outside the block. Furthermore the return operator is quite