Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 16 and Version 17 of ChapterChildProcesses

Show
Ignore:
Author:
mandel (IP: 87.139.115.64)
Timestamp:
12/28/07 22:17:02 (16 years ago)
Comment:

toUtf8 -> toString

Legend:

Unmodified
Added
Removed
Modified
  • ChapterChildProcesses

    v16 v17  
    143143||Error||{{{errno}}} value of the failure if the process was running; -1 if not||The wait on the child process failed|| 
    144144 
    145 In order to simplify error handling there is also a convenience method called {{{Process.Result.toUtf8()}}} that will convert the process result into a human-readable message. 
     145In order to simplify error handling there is also a convenience method called {{{Process.Result.toString()}}} that will convert the process result into a human-readable message. 
    146146[[BR]] 
    147147 
    200200        Process p = new Process(command, env); 
    201201 
    202         Stdout.formatln("Executing {}", p.toUtf8); 
     202        Stdout.formatln("Executing {}", p.toString); 
    203203        p.execute(); 
    204204 
    215215        Process.Result result = p.wait(); 
    216216 
    217         Stdout.formatln("Process '{}' (pid {}) finished: {}", p.programName, p.pid, result.toUtf8); 
     217        Stdout.formatln("Process '{}' (pid {}) finished: {}", p.programName, p.pid, result.toString); 
    218218    } 
    219219    catch (ProcessException e) 
    220220    { 
    221         Stderr("Process execution failed: ") (e.toUtf8).newline; 
     221        Stderr("Process execution failed: ") (e.toString).newline; 
    222222    } 
    223223    catch (IOException e) 
    224224    { 
    225         Stderr("Input/output exception caught: ")(e.toUtf8).newline; 
     225        Stderr("Input/output exception caught: ")(e.toString).newline; 
    226226    } 
    227227    catch (Exception e) 
    228228    { 
    229         Stderr("Unexpected exception caught: ")(e.toUtf8).newline; 
     229        Stderr("Unexpected exception caught: ")(e.toString).newline; 
    230230    } 
    231231}