A D implementation of the expect framework.