View Single Post
  #2  
Old 05-21-2005, 03:24 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

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.
Reply With Quote