DFortune

Unix fortune-cookie parser written in D
git clone git://xatko.vsos.ethz.ch/DFortune.git
Log | Files | Refs

commit 1ae6ddfe9fd94c247c02a167c694b3dbbdd2d0e4
parent 6dffe3f1c8b20a6d41f0320500ab4959896b6493
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Sun,  9 Aug 2015 22:51:42 +0200

Alias put to add in struct Fortunes.

The struct now qualifies as OutputRange.
I have no idea what this is good for...

Diffstat:
dfortune.d | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/dfortune.d b/dfortune.d @@ -249,6 +249,7 @@ struct Fortunes{ auto static strings(T)(T r) if(isInputRange!T && is(ElementType!T==CookieResult)){ return map!(a=>a.toString())(r); } + alias put=add; void add(string f){ Fortune n=new Fortune(f); n.initialize();