A new data type, int (.i)
Posted: Sat Jun 10, 2006 7:32 am
Just thinking that for a future release of PureBasic a new integer data type, Int (.i) might be nice.
Ints would default to whatever was most appropriate for the platform. So an int might be 32 bits or 64 bits or whatever. In other words, they would not have a fixed size, to get size SizeOf(Int) would be required.
Programmers could then use the things like, um, *p.i knowing that it would be the best choice for the platform they're using. And porting code would keep it that way.
Ints would default to whatever was most appropriate for the platform. So an int might be 32 bits or 64 bits or whatever. In other words, they would not have a fixed size, to get size SizeOf(Int) would be required.
Programmers could then use the things like, um, *p.i knowing that it would be the best choice for the platform they're using. And porting code would keep it that way.