I dont have the source on this computer so I cant see what you're talking about right now, but how is quest::checkflag with a return value any different than having a flag variable except for the fact that having a return value function takes up less resources serverside (if that is indeed how it works)?
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
|