TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JAVIER KOHEN
from: CAMERON CLARK
date: 1997-08-05 18:52:00
subject: Re: C++ or ASM?

JK>         v_screen = static_cast
JK>                 (const_cast(MK_FP(0xA000, 0x0000)));
JK> I think those C++ casts are purely cosmetic... ;-)
    It might seem that way, but using volatile is supposed to
    tell the compiler that the contents may change unexpectedly and
    it should avoid storing the value in registers.
    However, in the above statement, I've no idea what the compiler
    is going to thing of a volatile,static,constant pointer to video
    memory.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)

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