DynamicLibrary: More platform independence!


#1

I would like to see some functions like this:

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

and

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

#2

Is this a bad idea?


#3

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