Click to See Complete Forum and Search --> : 64 bit


THY02K
March 11th, 2002, 08:56 AM
when can we expect 64 bits to arrive? What are the determinants?

And this old question again, why INT and not int?

INT is defined in some windows specific header? And prolly not ANSI compliant and therefore not portable to UNIX box?

cpitis
March 12th, 2002, 12:10 AM
INT is not a built in type of C++. However, it is defined in some window header files, for example (but not only windows).

Andreas Masur
March 12th, 2002, 12:30 AM
>> when can we expect 64 bits to arrive? What are the determinants?

I never looked that close so I do not know...


>> And this old question again, why INT and not int?
>> INT is defined in some windows specific header? And prolly not ANSI compliant and therefore not
>> portable to UNIX box?

Even if it sounds strange but this is usually used for e.g. portability reasons. Right now 'INT' is defined in Windows as the built-in type 'int' which is 32-bit. If you are using 'INT' instead of 'int' within your application then you can easily port it to another platform...think about porting your application to a platform where 'int' is defined only 16-bit. Usually you would have to go through your complete source code to change all 'int' to e.g. 'long'. Using 'INT' you would only change one place...the definition of 'INT'. That's only one example why those defines exist...

Ciao, Andreas

"Software is like sex, it's better when it's free." - Linus Torvalds