Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: why the array index has to start at 0??

by Argel (Prior)
on Jun 24, 2009 at 20:21 UTC ( #774514=note: print w/replies, xml ) Need Help??

in reply to why the array index has to start at 0??

For better or worse "offset" was spelled "index", and thus the source of your confusion. The fact of the matter is that we are stuck with "index" whether it makes sense or not and whether we like it or not. Just think "offset" when you see "index". And never use the $[ trick!!!

Elda Taluta; Sarks Sark; Ark Arks

  • Comment on Re: why the array index has to start at 0??

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://774514]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2016-10-25 16:25 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (323 votes). Check out past polls.