DFortune

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

commit 2ce205bd1204fc2c0d6ae9043af2f8121fc56c80
parent 61160050fadad9d91138ac3322d6c9d62ea54cd0
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Sun,  9 Aug 2015 22:44:13 +0200

Fortunes: Throw a more useful exception.

Diffstat:
dfortune.d | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dfortune.d b/dfortune.d @@ -269,7 +269,7 @@ struct Fortunes{ return CookieResult(f.opIndex(i),f); } } - assert(0); + throw new RangeError("Out of bounds"); } @property size_t length(){ size_t size;