TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: FERNANDO ARIEL GONT
from: CAMERON CLARK
date: 1997-11-08 14:38:00
subject: Re: Portability

FA> I mean, it's great to have a code that can be executed on several 
Operative
FA> Systems, but I haven't found a program that is portable (or else I 
aven't
FA> realised), so that I don't understand why is it so important for a code 
o
FA> be portable......
    To make a c++ program portable, don't use non-portable libraries
    or assumptions about a specific architecture.
    There are libraries that are native to DOS only others native
    to UNIX only - don't use them. 
    Don't use assembly language, direct memory access, or unfortunately
    assumptions about the size of primitive data types. Even thought
    a char is a byte on every system I've used, and int may be 2 or
    4 bytes, and a long int may be 4 or 8 bytes.
--- 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™.