Code/Tea/Etc...

Duncan Mackenzie has too much time on his hands

Paul Vick, Language Designer on the VB team, discusses arrays with non-zero lower bounds...

One of the changes from VB6 to VB.NET was the removal of non-zero lower bounded arrays... a concept discussed by Eric Gunnerson recently, and now covered by Paul... giving it a bit of VB perspective.
Non-zero lower bounded arrays (the other side of the coin)
... To finesse this issue, the CLR designers came up with a compromise: there would be two kinds of arrays in the CLR. One kind, which I'll call "arrays," were just like normal VB arrays - they could have non-zero lower bounds. The other kind, which I'll call "vectors," were a restricted type of array: they could only be 1-dimensional, and their lower bound was fixed to be zero. This compromise allowed VB to have its arrays, and also allowed the C-derived languages to optimize the most common array case. Everyone was happy, right? ...
[Listening to: Are You Gonna Be My Girl - Jet - Get Born (03:37)]
Published Friday, March 19, 2004 12:04 AM by Duncanma
Filed under:

Comments

 

Vivek said:

Sir,

It is a wonderful idea,but am not able to get the right thing.

vivek
March 26, 2004 1:10 AM
Anonymous comments are disabled

This Blog

Syndication

News

This blog has moved to my own VB site

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker