DynamicLibrary: More platform independence!

I would like to see some functions like this:

// Returns a pattern for matching shared library files
String DynamicLibrary::getFilenameWildcard ()
  return "*.dll"; // on Windows


// Converts a file name into a platform specific shared library name
String DynamicLibrary::getPlatformFilename (String name)
  return name + ".dll"; // on Windows

Is this a bad idea?

Well, not a bad idea, but it doesn’t seem like something that people would often use…