
4 Jul
2008
4 Jul
'08
11:16 p.m.
Beman wrote: <Snip>
"stem" is an interesting suggestion. For "word stem", Wikipedia says "In linguistics, a stem (sometimes also theme) is the part of a word that is common to all its inflected variants." That pretty much describes the basename concept.
--Beman
What if the 'replace_extension' (aka 'change_extension') function just took an empy string as a default second argument? Isn't that the same as basename? Then you don't need 'base_name' or 'stem' at all. Also extension/change_extension should not be a member function since they should be defined in a separate header so that people who don't believe in extensions don't have to include them. -- John Femiani