I'm moving some functionality out of flx and lib/std/felix into class System and class Shell, in include std/system.flx and std/shell.flx.
There's some overlap between these classes. System traditionally contains system(), exit(), argv() etc. My concept for Shell is quoting and callouts to the shell, so Shell has the real system command, and System just dispatches to it. Shell also has gen get_stdout: string -> int * string; which is a wrapper around popen. On the other hand System now gets proc pexit: int which is like exit but prints a diagnostic and can fixup the exit code from a shell command. Flx uses pexit so we know WHY something broke. -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language