DFortune

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

commit 6dffe3f1c8b20a6d41f0320500ab4959896b6493
parent 2ce205bd1204fc2c0d6ae9043af2f8121fc56c80
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Sun,  9 Aug 2015 22:45:47 +0200

alias opDollar to length of struct Fortunes.

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

diff --git a/dfortune.d b/dfortune.d @@ -271,6 +271,8 @@ struct Fortunes{ } throw new RangeError("Out of bounds"); } + + alias opDollar=length; @property size_t length(){ size_t size; foreach(Fortune f; fortunes)