<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
Hi All,<BR>
<BR>
I notice the Processing base class has a method called 'Do' - which in effect makes the object do what it should do.<BR>
<BR>
In my opinion this should be the (overloaded) call operator and not something like 'do' or 'run'<BR>
- this models the c convention of calling functions when you want to do something<BR>
- is more idiomatic c++<BR>
- looks nicer (but that is an opinion :)<BR>
<BR>
It would make the Processing base a first class 'function object'<BR>
<BR>
    <A HREF="http://en.wikipedia.org/wiki/Function_object">http://en.wikipedia.org/wiki/Function_object</A><BR>
<BR>
and as such more adapt towards either Boost or the upcoming new C++ standard.<BR>
- boost::bind looks for operator()<BR>
- boost::thread does too<BR>
<BR>
(bind is in TR1, threading in C++0x)<BR>
<BR>
I know changing Processing is not something to be done on a wim, but I thought I mention it. <BR>
<BR>
And<BR>
<BR>
<TT>    void operator()()</TT><BR>
<TT>    {</TT><BR>
<TT>        this->Do();</TT><BR>
<TT>    }</TT><BR>
<BR>
could be a nice intermediate<BR>
<BR>
Best, Dirk<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>