Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Question about datatypes

Author
Message
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 13th Dec 2002 01:24
Has anybody noticed that dbpro uses 4 byte integers rather than the bog standard 2byte integers that most other languages use. A long integer in dbpro takes up 8 bytes when a standard long integer would only take up 4 bytes. I dont know if this is weird or not but the range of a byte is 0 to 255 when i would expect it to be -128 to 127. If sum1 from the db team can answer my query i wud be grateful
If you forget one little thing i shall have you shaved sterilised and destroyed: Jeffrey Goines
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 13th Dec 2002 01:33
Most languages for 32-bit OS's have 32bit integers rather than 16bit. And most in most languages a Byte is unsigned (0-255).

But I'm not a member of the DBS team...

Ogres have layers.
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 13th Dec 2002 02:18
Vb 6 uses a 16bit integer. A long integer is 32 bit. I can understand the part about the byte

If you forget one little thing i shall have you shaved sterilised and destroyed: Jeffrey Goines
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 13th Dec 2002 03:16
I don't have VB. But both Delphi (since Version 2 me thinks) and C++ Builder use 32bit integer. And AFAK Visual C++ too.

Ogres have layers.

Login to post a reply

Server time is: 2024-04-18 04:27:00
Your offset time is: 2024-04-18 04:27:00