root/trunk/mdcl.d

Revision 255, 1.5 kB (checked in by JarrettBillingsley, 10 months ago)

--

Line 
1 /******************************************************************************
2 License:
3 Copyright (c) 2007 Jarrett Billingsley
4
5 This software is provided 'as-is', without any express or implied warranty.
6 In no event will the authors be held liable for any damages arising from the
7 use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it freely,
11 subject to the following restrictions:
12
13     1. The origin of this software must not be misrepresented; you must not
14     claim that you wrote the original software. If you use this software in a
15     product, an acknowledgment in the product documentation would be
16     appreciated but is not required.
17
18     2. Altered source versions must be plainly marked as such, and must not
19     be misrepresented as being the original software.
20
21     3. This notice may not be removed or altered from any source distribution.
22 ******************************************************************************/
23
24 module mdcl;
25
26 import minid.commandline;
27
28 import tango.io.Stdout;
29 import tango.io.Console;
30
31 void main(char[][] args)
32 {
33     // This seemingly pointless code forces the GC to reserve some extra memory
34     // from the start in order to improve performance upon subsequent allocations.
35     // This is until the Tango GC gets a .reserve function or the like.
36     auto chunk = new ubyte[1024 * 1024 * 4];
37     delete chunk;
38    
39     (new CommandLine(Stdout, Cin.stream)).run(args);
40 }
Note: See TracBrowser for help on using the browser.