Re: [Pharo-users] STON question

2020-06-28 Thread Stéphane Ducasse
> On 28 Jun 2020, at 18:22, Russ Whaley wrote: > > Stephane, > Thanks for the info on chrysal. I'm going to like going through the code to > see how you solved some things. I created my own Configuration class that > operates with a dictionary of keys the applications expect to use, and >

Re: [Pharo-users] STON question

2020-06-28 Thread Russ Whaley
Stephane, Thanks for the info on chrysal. I'm going to like going through the code to see how you solved some things. I created my own Configuration class that operates with a dictionary of keys the applications expect to use, and configuration values (paths, numerics, dates, strings...) but not

Re: [Pharo-users] How to set path as a variable

2020-06-28 Thread Christopher Fuhrman
> > Then you can add your directory to it (note that I put a semicolon for > path separator in Windows): > > modifiedPath := 'D:\DEV_FreeCAD\build\bin\;' + path. My apologies (I have been coding too much JavaScript lately) - this should have been: modifiedPath :=

Re: [Pharo-users] How to set path as a variable

2020-06-28 Thread Christopher Fuhrman
Hello, Why not use the PATH environment variable in Windows to do what you want? I deal with setting variables used with LibC in my blog entry at https://fuhrmanator.github.io/2019/03/16/LibC-Pharo-experiments.html You can get PATH by using: path := OSEnvironment current getEnv: 'PATH'.

[Pharo-users] How to set path as a variable

2020-06-28 Thread shawon58
In pharo class side , i am creating class side method like as /*makebox LibC system: 'D:\DEV_FreeCAD\build\bin\makebox.step'*/ SO i want to set /D:\DEV_FreeCAD\build\bin\ / as a variable like path than i can write like as *LibC system: 'path\makebox.step'* how to do that, if anyone have idea

Re: [Pharo-users] STON question

2020-06-28 Thread Stéphane Ducasse
> On 27 Jun 2020, at 16:58, Sven Van Caekenberghe wrote: > > Hi Russ, > > The limitation of STON not being capable of serialising a block closure still > stands and will probably not change very soon (it open up the whole language > to be written out). > > You can work around this though,

Re: [Pharo-users] STON question

2020-06-28 Thread Stéphane Ducasse
Hi russ, I do not if you know but based on Ston I built chrysal to manage applications configuration: https://github.com/ducasse/chrysal The basic idea is that you describe the possible fields of your configuration (i.e. how user can edit JSON