Le 12/11/2014 10:22, Hilaire a écrit :
> Later I test directly from the browser with a dummy class with one
> method with non ascii character. Fileout sometimes work (for example, I
> add a space in the method body, save, remove the space, save again,...),
> some time not.
>
> tested on Pharo 3.0
Le 12/11/2014 10:15, p...@highoctane.be a écrit :
> Why not use FileSystem memory for those things? This would keep the
> files inside the image.
>
because I didn't know about it :)
But fileout(UTF8 conversion, again...) seems to be broken, see my other
post.
Hilaire
--
Dr. Geo - http://drgeo.
and if you want a json like implementation there is filetree. I think json
is a much better format than XML but I am nowhere near to an experienced
web developer.
On Wed, Nov 12, 2014 at 11:15 AM, p...@highoctane.be
wrote:
> On Wed, Nov 12, 2014 at 9:21 AM, Hilaire wrote:
>
>> Le 12/11/2014 09:
On Wed, Nov 12, 2014 at 9:21 AM, Hilaire wrote:
> Le 12/11/2014 09:08, p...@highoctane.be a écrit :
> >> Is it possible to export a whole class as a string, then import it back
> >> from a string representation to a class?
> >
> > Isn't that a fileOut/fileIn thing?
> >
>
> Yes, however I don't wa
String streamContents: [ :out | Association fileOutOn: out ]
I am not sure it covers everything, but for some script methods this will do.
> On 12 Nov 2014, at 09:21, Hilaire wrote:
>
> Le 12/11/2014 09:08, p...@highoctane.be a écrit :
>>> Is it possible to export a whole class as a string, the
Le 12/11/2014 09:08, p...@highoctane.be a écrit :
>> Is it possible to export a whole class as a string, then import it back
>> from a string representation to a class?
>
> Isn't that a fileOut/fileIn thing?
>
Yes, however I don't want it on a .st file (to avoid possible trouble on
the end user
Le 12 nov. 2014 08:32, "Hilaire" a écrit :
>
> Hi,
>
> Dr. Geo script are becoming first class citizen -- before it was just a
> method hooked to an existing DrGeoUserScripts class ; then, it was easy
> to export the script method as a string to include it in the XML sketch
> file.
>
> Now to save