Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
0-based indexing?
Message
From
03/08/2002 14:52:51
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00685916
Message ID:
00685917
Views:
11
>I am not sure if 0-based indexing is the correct term, but I am wondering why in .NET the first element of an array starts is indexed with 0. I know this is done in 'C', but I can't remember the rational for it.

This is one of those long debates. :)

This is the same for javascript as well as a bunch of other environments. I always found it more difficult to handle those ones like that. However, each developer as its own opinion. I believe in VFP, it's more easier to manipulate an array when the first element is indexed at 1. I believe there is also a request to have the 0 based index supported as well. So, it depends on each developer's POV. However, it would be cool if those environments would support such an ability to indicate the 0 based indexing or 1 based indexing.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform