> class Deck { > Card popBack() { > auto card = cards.popBack(); // get last card. cards.length Note that popBack() is void: http://dlang.org/phobos/std_array.html#popBack use auto card = cards.back(); cards.popBack();