[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] functions and variables



It's only the result of inconsistent coding style and bad object-oriented programming.

Madhan Mohan wrote:

Hi

In  ns I find that many classes employ 2 methods to access a variable . One
directly and the
other through a inline function. eg in struct hdr_cmn we have direction_ and
also direction( )
And many codes use only the 2nd method i.e. the function.Why is this done?

Madhan Mohan

-- 
Håkan Byström, Operax
+46 920 755 07, office
+46 70 374 03 24, cellular