Re: Begining with D

2013-10-13 Thread Robik
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

Re: Code from a Rosetta Code Task

2013-08-29 Thread Robik
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

Re: String representation of enum value

2013-08-04 Thread Robik
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

Re: SQLite library on Windows

2012-12-27 Thread Robik
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