"Walter Bright" <newshound at digitalmars.com> wrote in message news:e09vmu$2ubc$1 at digitaldaemon.com... > It's a forward reference problem. Try reversing the declarations of keys() > and KeyCollection. Thanks - that fixed it. But surely it highlights a separate bug: forward referencing isn't supposed to be an issue in D, is it? John.