Hi all,
for a transformation method I mean a method which will transform an
object changing its internal state.
Do you think it is a good idea to return the pointer to the modified object like this:
Object* Object::transform()
?
In this way it is possible to combine different transformation methods
to get the very convenient and compact notation:
obj.stretch().munge().dilate().colorize();
On the other hand, the Java standard library and some C++ libraries
(e.g. libpt) seem to prefer to return a boolean (true in case of a
successful operation).
Any thoughts? Many thanks in advance.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)