"A nested class is a class that is declared inside the scope of a function or another class." It doesn't say a class can be local to a block of code. > ------------------- > Unrelated: > I may have found a bug in std.intrinsics too, shown by this code: > http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=78637 Why don't you file them in bugzilla?