------- Comment #1 from  2009-05-02 13:55 -------
Upon further investigation, the problem is that typeid(string) returns the
typeinfo for a generic array, not for a char[]:

import std.stdio;

void main() {
    writeln(typeid(immutable(char)[]) is typeid(char[]));  // False.

Using typeid(char[]) instead of typeid(string) in the above program fixes the
problem.  I guess noone remembered to change this when strings were changed to
default immutable.


Reply via email to