TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JAVIER KOHEN
from: THOMAS MAEDER
date: 1997-06-29 14:31:00
subject: Classes

JK> enum Boolean {
JK>     False, True
JK> };
Check if your compiler hasn't a built-in type bool for this.
JK> class MouseInfo {
JK>     Boolean installed;
JK>     int buttons;
As I understand it, !installed is logically equivalent to buttons==-1.
If this is the case, I would erase "installed"; you could  replace  it
by a (inline) member function
Boolean Installed() const { return buttons!=-1; }
if necessary.
Thomas
---
 þ MM 1.0 #0113 þ Drag me, drop me.  Treat me like an object!
---------------
* Origin: McMeier & Son BBS (2:301/138)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.