Differences From Artifact [372bc7cd7d19e082]:
- File
src/gui_main.d
- 2012-07-15 11:26:58 - part of checkin [bd650eb3f9] on branch trunk - Output is now fully functional. (user: kinaba) [annotate]
To Artifact [05082d0f328d756c]:
- File
src/gui_main.d
- 2012-07-14 16:39:50 - part of checkin [fec7ddc502] on branch trunk - Refactoring for ease of changine main solver. (user: kinaba) [annotate]
- 2012-07-15 12:01:04 - part of checkin [a03584f1c6] on branch trunk - Refactored. (user: kinaba) [annotate]
5 import std.stdio; 5 import std.stdio;
6 pragma(lib, "dfl.lib"); 6 pragma(lib, "dfl.lib");
7 7
8 void main(string[] args) 8 void main(string[] args)
9 { 9 {
10 Driver d = new Driver(stdin); 10 Driver d = new Driver(stdin);
11 d.addObserver!(GuardedOutput)(); 11 d.addObserver!(GuardedOutput)();
12 // auto g = d.addObserver!(GUI!MainSolver)(); | 12 auto g = d.addObserver!(GUI!MainSolver)();
13 auto g = d.addObserver!(GUI!Solver_0)(); <
14 g.set_fn(&d.command); 13 g.set_fn(&d.command);
15 g.run(); 14 g.run();
16 } 15 }