with console/terminal input and output can get
surprisingly
complex, and doing it cross-platform is easiest with a library.
Robik's consoleD is one:
https://github.com/robik/ConsoleD/blob/master/consoled.d
it focuses on enabling color and drawing mainly, and also has
functions
to turn off
On Thursday, 29 August 2013 at 18:57:58 UTC, Meta wrote:
uint fib(in uint n) pure nothrow {
immutable self = __traits(parent, {});
return (n 2) ? n : self(n - 1) + self(n - 2);
}
I came across this while browsing Rosetta Code. It's really
cool how you can do recursion without
On Sunday, 4 August 2013 at 13:57:20 UTC, Marek Janukowicz wrote:
Given following code:
enum ErrorCode {
BAD_REQUEST,
UNKNOWN
}
ErrorCode code;
is there any way to get string representation of code with
regard to values
defined in enum? I mean - if code == 0, I'd like to get a string
On Thursday, 27 December 2012 at 01:45:26 UTC, BLM768 wrote:
I've been trying various methods to get SQLite working in
Windows using the etc.c.sqlite3 bindings, but I can't figure
out how to get everything in a form that DMD likes. GCC doesn't
seem to output anything that OPTLINK can use, and