http://d.puremagic.com/issues/show_bug.cgi?id=1694 ------- Comment #1 from wqeqweuqy at hotmail.com 2007-11-26 00:04 ------- looks like this cast is whats breaking it: de.name = to!(string) (data[i .. i + namelen]); this fixes it: de.name = cast(invariant(char)[]) data[i .. i + namelen]; --