On 3/12/12, Ali Çehreli <acehr...@yahoo.com> wrote: > Let's please also see the exact error message. "an error message that > seems to indicate that DMD is looking for a global identifier" is not > clear to mortals like myself. :)
He probably means something like this: struct State { } struct Input { } State[][Tuple!(const(State), const(Input))] transitions; void main() { writeln(transitions.length); } test.d(20): Error: undefined identifier module test.length Note that typeid doesn't work either: writeln(typeid(transitions)); D:\DMD\dmd2\windows\bin\..\..\src\druntime\import\object.di(507): Error: can only initialize const member key inside constructor This seems to be an issue related with const. Without const both calls work.