Branch: Tag:

2013-11-02

2013-11-02 14:19:27 by Per Hedbor <ph@opera.com>

Use variant for Process.popen

927:   //! @seealso   //! @[system], @[spawn]    - Stdio.FILE|string popen(string s, string|void mode) { -  if(mode) -  return fpopen(s,mode); -  else + variant string popen(string s) {    return fpopen(s)->read();   }    -  + variant Stdio.FILE popen(string s, string mode) { +  return fpopen(s,mode); + } +    protected Stdio.FILE fpopen(string s, string|void mode)   {    Stdio.FILE f = Stdio.FILE();