Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Who invented the zero based
Message
 
 
À
24/11/2011 09:04:26
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01529748
Message ID:
01529750
Vues:
75
>I've been thinking about this this morning. Who invented the zero based approach, which applies to a lot of things in several development environments, including, among others, .NET. This is always a waste of time trying to understand/find which one applies to a specific component. I mean, when I start counting, I start at 1, right? lol

It goes back to C or even before. It has never seemed that weird to me because my first programming language was assembler, in which displacements are everything. You offset from the base register address so many bytes and that's where the action is. Adding 1 to make it more understandable in everyday terms would just add unneeded operations in the CPU.

BTW, my post just now about Wikipedia reminded me that I am currently lapsed in my UT membership. I will rectify that when I pay the bills later this weekend. I have no idea how much income the site brings you but do know you pour your soul into it and have to put up with a lot of aggravation ;-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform