[Ns-developers] [ns3] trace path documentation

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Thu Apr 10 17:40:54 PDT 2008


On Fri, 2008-04-11 at 01:28 +0100, Gustavo Carneiro wrote:


> Can you at least rename it to PointerAttribute or something.  Having
> both Pointer and Ptr is rather confusing.
> 
> Moreover, generally I think all classes that only wrap attribute
> values and which have a Get() method should be renamed to FooAttribute
> (replace Attribute with a suffix of choice).  That would make it clear
> when a class is only a wrapper to an actual value.

The current naming of Double, Integer, et al. reflects the java naming
of similar classes so, I would like to keep the current scheme for them.
As far as Pointer is concerned, I agree with you that Ptr + Pointer is
somewhat annoying but Pointer at least follows the convention
established with Double or Integer if you see it as a class to hold a
native type such as a pointer. I can't claim that that naming is great
but there is a rationale, and consistent scheme here so, I would be wary
of changing it.

regards,
Mathieu



More information about the Ns-developers mailing list