How to fileIn a string content
Hello, String streamContents: [:out | DrGeoScriptXXX fileOutOn: out] works well to fileout a class in a sring. How can I do the opposite operation: filein this string to instantiate the class represented in such a string? I did not find out Thanks Hilaire -- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu
Probably CodeImporter>>#evaluateFileStream: as used by AbstractFileReference>>#fileIn
On 19 Nov 2014, at 10:56, Hilaire <hilaire@drgeo.eu> wrote:
Hello,
String streamContents: [:out | DrGeoScriptXXX fileOutOn: out] works well to fileout a class in a sring.
How can I do the opposite operation: filein this string to instantiate the class represented in such a string?
I did not find out
Thanks
Hilaire
-- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu
Responding to myself, for the reference: CodeImporter evaluateString: aString Hilaire Le 19/11/2014 10:56, Hilaire a écrit :
Hello,
String streamContents: [:out | DrGeoScriptXXX fileOutOn: out] works well to fileout a class in a sring.
How can I do the opposite operation: filein this string to instantiate the class represented in such a string?
I did not find out
Thanks
Hilaire
-- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu
participants (2)
-
Hilaire -
Sven Van Caekenberghe