Optional name mangling

Jonathan M Davis jmdavisProg at gmx.com
Sat Jul 21 14:31:57 PDT 2012


On Saturday, July 21, 2012 23:18:46 Stuart wrote:
> On Saturday, 21 July 2012 at 20:07:00 UTC, Jonathan M Davis wrote:
> > Of course, since PathRenameExtensions does what
> > std.path.setExtension does, it
> > would probably be better to just use that, but the OP's
> > question _does_ apply
> > to other functions which may not have D replacements, so the
> > question is still
> > relevant.
> 
> I didn't know about std.path.setExtension. Is there some kind of
> table where I can look up D equivalents to API function calls?

No. If you want to know what's there, you need to look at the documentation. 
For the most part, the module names are reasonbly well named after what they 
do, so you should be able to figure out what module contains the functionality 
you're looking for without too much difficulty. As for this case, Path-related 
stuff goes in std.path, stuff that operates on a file as a whole is in std.file, 
and stuff that involves more general I/O (including reading a file in pieces) is 
in std.stdio.

- Jonathan M Davis


More information about the Digitalmars-d mailing list