version (fix) import string; else import std.string; void main() { int i; char[] s = "filename.ext"; printf("Case 1: Use a character:\t"); i = rfind(s, '.'); printf("No problem (%d).\n", i); printf("Case 2: Use a string:\t"); i = rfind(s, ".e"); printf("No problem (%d).\n", i); printf("Case 3: Use a single character string.\t"); i = rfind(s, ".");/* Why does it have to give an error for this? */ printf("No problem (%d).\n", i); }