TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: HERMAN SCHONFELD
from: CHRIS DOWNS
date: 1997-03-31 12:09:00
subject: Re: Bit Fields

 JH>// BOOLEAN.H
 
 JH>enum boolean{false, true};
 
 JH>inline boolean operator!(boolean bState)
 JH>{  return (bState == true ? false : true);  }
 HS> That would be pretty useless. So much overhead for a little boolean
 HS> variable. 
Looks to me that with any half decent compiler, the "overhead"
would be nothing at all.  Of course if your compiler can't handle even
the most simple of inline functions like the above, then overhead
could be quite significant.
---
 þ Blue Wave/QWK v2.12 þ
---------------
* Origin: St. Louis Users Group (1:100/4)

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™.