R
Ralph
Dragon said:Excuse me?
concession would've
AFAIK, IntPtr and UIntPtr are exactly that, i.e. platform-sized
integers! Aren't them?
Roman
Yes, in .NET. (actually they are structures that serve as a container for a
platform-specific sized thingy specific to a pointer or handle.)
What Karl was talking about is the VB Classic's "Integer" datatype and
migrating code to VB.Net. As VBc didn't have a platform-specific 'integer'
or 'int', a lot of VBc code is written that depends on it being 16-bit. When
32-bit was needed a "Long" was used. While reworking code to a new size or
datatype is rather trivial for a couple of routines - amounting to little
more than a search and replace with a new datatype, it can be quite annoying
for projects numbering hundreds if not thousand of lines of code.
As an example, there is an often told story (perhaps apocryphal), that when
MS was converting toys and utilities from Win3.1 to Win98 that Solitaire,
when recompiled, mysteriously occasionally froze. The developer tested
several bogus theories until it was found that there was a simple
timing/test loop that counted down to zero on an integer. When the loop had
a simple range of 32,767 the expected delay was trivial - but when it became
2,147,483,647 the delay became unacceptable.
Easy fix, sure. Showstopper, of course not. But many 'easy' fixes soon
requires just that many unit/system tests and adds to the cost
Karl's point is simply if VB.Net wanted to truly be version "7", they would
have been better off to have left the traditional, "VB", sized, datatypes
alone.
-ralph