W
werasm
But other than that, what should one use for the type?
Would any of "digit", "Digit", "DigiT", "digiT" be
acceptable, then? And should ALL macros be named
with CAPITALS, then?
I presume by the type you mean the class (or is
DIGIT in actual fact a template argument). It
did not seem like a template argument to me.
e.g:
Your function did not look like this:
template <class DigitT>
void SomeObject( /*...*/ )
{
std::vector<DigitT> blah;
}
As I understood it DIGIT was a class. If that is the
case (it being a class), refer to James's detailed
(and sound) reply. If it was indeed a template argument
like DigitT here above, I personally would have called it
DigitT (or Digit_T). All caps are reserved for macros. A
capital here and there does no harm, as long as the identifier
does not only consist of capitals (just in case you misunderstood).
$50 for that book?! I need a good source of money... Heh,
which is why I'm trying to make these programs.
Good book - worth the money (IMHO).
I suppose so. It does sound like it would make it easier,
as then you can change how you do those often-used functions
without changing everything that uses them.
That is more or less my rationale too. If you have an
implementation where you've used transform, please post it
(under the previous topic) for interest sake (or mail me).
Regards,
Werner