Krishna wrote:
[...] So even though typedef const BLAH CBLAH;
is syntactically correct, i guess its logically correct to always place
the const qualifier after the type name. That should be a better
programming practice?
Well... I'm often on the fence regarding "better programming practices".
For example, which is better
char *pchar;
or
char* pchar;
?
Here is another one: which is better
for (int i = 0; i < somenumber; i++)
or
for (int i = 0; i < somenumber; ++i)
The point is that for the beginner they might look different, while they
are really not, OTOH, one can argue that they do promote some good habits
in a novice. *I* use them interchangeably. Read: it doesn't matter where
you place 'const' as long as you know what you're getting, and why, and as
long as others (presumably knowledgeable C++ programmers as well) can see
and understand what you meant/intended.
Take this at its face value (since I am not paid to post here the value
of my posts can be seen as 0.0000) and form your own opinion. Philosophy
teaches us that in our heads we cannot have ideas that are not our own.
That means that whatever you end up doing or thinking is produced by your
own consciousness, your own mind. And you form those ideas based on the
information available to you, and nobody can tell you what to think or do.
Right?
V