[Ns-developers] About TracedCallback signatures
tbns at idlebox.net
Thu Dec 3 00:46:02 PST 2009
in one of my current wifiex patches I am going to add a new parameter
RxErrorReason to some of the Wifi traces to indicate the reason for a packet
However, with the current system, by adding one TraceSource parameter I break
all my own old experiments in a very bad way: they don't through compile
errors, but only show the fault when run. Assuming I am not the only person
writing experiments with these TraceSources, I also break a lot of other
people's work. Furthermore, fixing up the callback signatures is exasperatingly
What are your thoughts on possible remedies to this problem?
- It is probably not possible to do compile-time type checking here. But that
would need investigation.
- use of a class WifiTraceInformationStruct should be encouraged to keep
signatures invariant. Of course, also for non-wifi things.
More information about the Ns-developers