[Clam-devel] breaking change
dirk.griffioen at barcelonamedia.org
Mon May 25 09:36:35 PDT 2009
I notice the Processing base class has a method called 'Do' - which in
effect makes the object do what it should do.
In my opinion this should be the (overloaded) call operator and not
something like 'do' or 'run'
- this models the c convention of calling functions when you want to do
- is more idiomatic c++
- looks nicer (but that is an opinion :)
It would make the Processing base a first class 'function object'
and as such more adapt towards either Boost or the upcoming new C++
- boost::bind looks for operator()
- boost::thread does too
(bind is in TR1, threading in C++0x)
I know changing Processing is not something to be done on a wim, but I
thought I mention it.
could be a nice intermediate
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the clam-devel