On 8 Dec 2005, at 02:11, Joel E. Denny wrote:

The "p" might be convenient if both variables are to be used side by side. However, also consider the multilingual issue: it won't be needed under C++.

Because it will always be a pointer? Or because it will always be an object?

Under C++, I think one should have:

namespace yy {

   class stack;
   ...
}


So in order to keep multilingual similarity, that suggests just naming it "yystack", without a "p". Names with a "p" added should then be reserved for C implementation variables, but not in the interface.

I don't believe yystack is part of the interface.

Under C++, one would be able to choose stack, with at least two standard choices: std::vector, and std::deque.

  Hans Aberg




Reply via email to