| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: C++ |
From: "Geo"
"Paul Ranson" wrote in message
news:419099cc{at}w3.nls.net...
>>The intention is that there is no difference, but it's not quite that
simple. In order to retain efficiency and C compatibility an 'int' is an
intrinsic type directly understood (in general) by the CPU. This is why its
size is not fixed by the language, different CPUs have different word
lengths and an 'int' or 'unsigned' is intended to be the natural fit to
that.<<
Thank you, now that I understand.
>>Then we could call it with any type of our choosing that supported '*',
'+' and 'abs'.
That's the other difference I saw with a type vs a class, a type defines
certain operators and not others, it limits things. For example with
unsigned int you are limited in that you can't use abs.
Geo.
--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)SEEN-BY: 633/267 270 5030/786 @PATH: 379/45 1 396/45 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.