C++ operators

From: Daniel Burke (addictmud@home.com)
Date: 03/04/99


Hello,

Does anyone know of a way to use C++ operators to assign a value to an
integer that is a member variable of a class? i.e.

ch->points.hit = 10;

The operator I need would take that, and allow me to have things trigger on
that assignment.  I think I need something like:

void operator = (int x, int y);

But I know that's not exactly what I need for it to only work on a specific
member variable.  Any help or point in the right direction will be greatly
appreciated.


Brazil - *THE OFFICIAL* AddictMUD
game.addictmud.org 4000
http://www.addictmud.org


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST