Differences From Artifact [b29be17d733aa309]:
- File        
main.d
- 2010-11-09 14:24:09 - part of checkin [2459e9a821] on branch trunk - refactored eof-driven REPL (user: kinaba) [annotate]
 
 
To Artifact [667427a12e5e3b09]:
- File        
main.d
- 2010-11-09 14:59:36 - part of checkin [7465fcdd7f] on branch trunk - layered function invocation (user: kinaba) [annotate]
 
 
   26          {                                                                             26          {
   27                  scope(failure)                                                        27                  scope(failure)
   28                          { buf = ""; lineno = nextlineno; }                            28                          { buf = ""; lineno = nextlineno; }
   29                                                                                        29  
   30                  buf ~= s;                                                             30                  buf ~= s;
   31                  nextlineno ++;                                                        31                  nextlineno ++;
   32                  try                                                                   32                  try
   33                          { lastVal = eval(parseString(buf, "<REPL>", lineno), ctx |    33                          { lastVal = eval(parseString(buf, "<REPL>", lineno), ctx
   34                  catch( UnexpectedEOF )                                                34                  catch( UnexpectedEOF )
   35                          { return false; } // wait                                     35                          { return false; } // wait
   36                  buf = "";                                                             36                  buf = "";
   37                  lineno = nextlineno;                                                  37                  lineno = nextlineno;
   38                  return true;                                                          38                  return true;
   39          }                                                                             39          }
   40                                                                                        40