Bugzilla – Bug 62
naming of methods in DefaultValue
Last modified: 2008-04-15 11:39:43 EDT
This is a carryover from the global routing discussion. > > >> - along the same lines, Bind() is kind of an oddball in the present > >> system. We do NodeList::Begin (), Simulator::Run (), > >> CommandLine::Parse (); but simply Bind (). This isn't consistent. > >> > >> (note: the choice of "bind()" was due to ns-2's methods of the same name) > >> > >> Perhaps it would be better to do something like, > >> > >> Configurator::Set ("DoStaticRouting", "true"); > >> > >> if (Configurator::IsEqual ("DoStaticRouting", "true")) > >> { > >> } > >Maybe it would make sense to try to stick the ns-2 naming scheme and use >DefaultValue::Bind and DefaultValue::IsBound ?
Any opposition to DefaultValue::Bind and DefaultValue::IsBound ?
Created attachment 35 [details] rename Bind to DefaultValue::Bind
I did not implement IsBound since this would have required a few changes in a lot of places and we do not need it right away.
code not there anymore.