/* bob.d bob - 99 Bottles of beer Numbers in written form correct grammar and last verse included. Uses D features such as; Nested functions, in two levels; numToBottles and numToText. Dynamic arrays, static such in numToText for text lookups, and as strings. Strings in switches. Imports, stdio to get writefl()/writefln(), string for capitalize(). Created by Fredrik Olsson on 2005-10-09. Copyright (c) 2005 Treyst AB. All rights reserved. */ module bob; private { import std.stdio; import std.string; } int main(char[][] args) { char[] numToBottles(uint num) { char[] numToText() { static char[][] nums = ["", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve"]; static char[][] decs = ["twe