Re: Upgrading to VB.Net
- From: Göran Andersson <guffa@xxxxxxxxx>
- Date: Thu, 19 Feb 2009 03:50:25 +0100
Armin Zingler wrote:
An Integer in VB6 is 16 bits while the "native integer" (machine word)
is 32 bits. How do you mean that the Integer type is a "pseudo code"
for the "native integer"?
Yes, now it's 32 bits, but VB6' Integer has been inherited from previous versions when it was a native integer on 16 bit machines.
No, it never was a native integer.
I'm not talking about documented, platform specific types like we have with IntPtr now. I mean, it has not been documented anywhere that "Integer is the platform specific integer type", but it was the type commonly used for integer operations and it "happened to" match the native integer size.
That's my point, it once was picked to be the same size as the current machine word, but it has never been depending on the actual size of the machine word.
And I agree that this is not true
anymore (that's the "confusing" part).
As it was never true, how is it confusing that it's not true now? ;)
I think it was true.
If it was once true, it would be true now also, which it clearly isn't.
Besides, if it's not confusing with a 16 bit Integer on a 32 bit platform, how can it be confusing with a 32 bit Integer on a 64 bit platform?
Anyway, who actually cares? ;-)
Well, I care because I don't want too much misinformation floating around. Cor clearly stated that an Integer is 16 bits on a 16 bit platform and 32 bits on a 32 bit platform, and that is a connection that doesn't exist at all. He also said that VB6 produces 16 bit software, which it never has.
--
Göran Andersson
_____
http://www.guffa.com
.
- Follow-Ups:
- Re: Upgrading to VB.Net
- From: Herfried K. Wagner [MVP]
- Re: Upgrading to VB.Net
- From: Cor Ligthert[MVP]
- Re: Upgrading to VB.Net
- From: Armin Zingler
- Re: Upgrading to VB.Net
- References:
- Upgrading to VB.Net
- From: Robert
- Re: Upgrading to VB.Net
- From: Cor Ligthert[MVP]
- Re: Upgrading to VB.Net
- From: Göran Andersson
- Re: Upgrading to VB.Net
- From: Armin Zingler
- Re: Upgrading to VB.Net
- From: Göran Andersson
- Re: Upgrading to VB.Net
- From: Armin Zingler
- Re: Upgrading to VB.Net
- From: Göran Andersson
- Re: Upgrading to VB.Net
- From: Armin Zingler
- Upgrading to VB.Net
- Prev by Date: RE: How to know all forms Opened in current AppDomain?
- Next by Date: Re: bug: active MDI child window does not show the menu
- Previous by thread: Re: Upgrading to VB.Net
- Next by thread: Re: Upgrading to VB.Net
- Index(es):
Relevant Pages
|