Differences From Artifact [abae545f4409680b]:
- File
main.d
- 2010-11-10 12:38:54 - part of checkin [38fcc662be] on branch trunk - cleaned up documentation comments (user: kinaba) [annotate]
To Artifact [981f3ba98be4374d]:
- File
main.d
- 2010-11-11 15:22:55 - part of checkin [6f0ec5b7c9] on branch trunk - Custom Test Runner (user: kinaba) [annotate]
51 } catch(Throwable e) { 51 } catch(Throwable e) {
52 writeln(e); 52 writeln(e);
53 } 53 }
54 return true; 54 return true;
55 } 55 }
56 } 56 }
57 57
58 version(unittest) { <
59 bool success = false; <
60 static ~this(){ if(!success){writeln("(press enter to exit)"); readln(); <
61 } <
62 <
63 /// Entry point. If args.length==1, invoke REPL. 58 /// Entry point. If args.length==1, invoke REPL.
64 /// Otherwise interpret the argument as a filename. 59 /// Otherwise interpret the argument as a filename.
65 void main( string[] args ) 60 void main( string[] args )
66 { 61 {
67 version(unittest) success=true; <
68 <
69 if( args.length <= 1 ) 62 if( args.length <= 1 )
70 { 63 {
71 writeln("Welcome to Polemy 0.1.0"); 64 writeln("Welcome to Polemy 0.1.0");
72 for(auto r = new REPL; r.singleInteraction();) {} 65 for(auto r = new REPL; r.singleInteraction();) {}
73 } 66 }
74 else 67 else
75 { 68 {
76 evalFile(args[1]); 69 evalFile(args[1]);
77 } 70 }
78 } 71 }