Click here to Skip to main content
15,887,214 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Why do arrays start at 0? Pin
obermd26-Aug-22 4:17
obermd26-Aug-22 4:17 
JokeRe: Why do arrays start at 0? Pin
trønderen26-Aug-22 5:11
trønderen26-Aug-22 5:11 
GeneralRe: Why do arrays start at 0? Pin
Daniel Pfeffer27-Aug-22 10:45
professionalDaniel Pfeffer27-Aug-22 10:45 
GeneralRe: Why do arrays start at 0? Pin
Greg Utas27-Aug-22 11:45
professionalGreg Utas27-Aug-22 11:45 
GeneralRe: Why do arrays start at 0? Pin
trønderen28-Aug-22 10:24
trønderen28-Aug-22 10:24 
GeneralRe: Why do arrays start at 0? Pin
Greg Utas25-Aug-22 14:09
professionalGreg Utas25-Aug-22 14:09 
GeneralRe: Why do arrays start at 0? Pin
Peter_in_278025-Aug-22 15:24
professionalPeter_in_278025-Aug-22 15:24 
GeneralRe: Why do arrays start at 0? Pin
trønderen26-Aug-22 4:28
trønderen26-Aug-22 4:28 
Peter_in_2780 wrote:
years_so_far = array [-14000000000..2022] of <something>; (assuming a 34 bit or bigger int)
Unfortunately, this may give incorrect results with the common Western calendar. Remember that year -1 is immediately followed by year (+)1 - there is no "year 0" between them.

I am not joking - see Year zero - Wikipedia[^]. As the Wikipedia article tells, this anomality have lead astronomers to make their own calendar, which indeed has a "year zero".

That said, I really miss the Pascal range index mechanism, and also that enums are a proper type, not just integer names, so that given an enum type 'month', an array could from index April to September. (Important note: That is neither identical to 4:9 or 3:8 - you cannot index the array by integers, no more than by doubles!)
GeneralRe: Why do arrays start at 0? Pin
Daniel Pfeffer27-Aug-22 10:59
professionalDaniel Pfeffer27-Aug-22 10:59 
GeneralRe: Why do arrays start at 0? Pin
trønderen28-Aug-22 10:25
trønderen28-Aug-22 10:25 
JokeRe: Why do arrays start at 0? Pin
Richard Deeming29-Aug-22 22:45
mveRichard Deeming29-Aug-22 22:45 
GeneralRe: Why do arrays start at 0? Pin
Greg Utas30-Aug-22 0:48
professionalGreg Utas30-Aug-22 0:48 
GeneralRe: Why do arrays start at 0? Pin
obermd26-Aug-22 4:20
obermd26-Aug-22 4:20 
NewsCommon Tech Jobs Described as Cabals of Mesoamerican Wizards Pin
Sean Ewington25-Aug-22 12:31
staffSean Ewington25-Aug-22 12:31 
NewsEmail Doesn’t Suck. It’s Email Clients That Need Improving Pin
Sean Ewington25-Aug-22 12:31
staffSean Ewington25-Aug-22 12:31 
GeneralRe: Email Doesn’t Suck. It’s Email Clients That Need Improving Pin
obermd26-Aug-22 4:21
obermd26-Aug-22 4:21 
NewsAnyone can sign up for DuckDuckGo’s privacy-protecting @duck.com email address Pin
Sean Ewington25-Aug-22 12:16
staffSean Ewington25-Aug-22 12:16 
NewsAfter 18 years, Meta’s finally building Facebook a customer service division Pin
Sean Ewington25-Aug-22 12:01
staffSean Ewington25-Aug-22 12:01 
GeneralRe: After 18 years, Meta’s finally building Facebook a customer service division Pin
Nelek25-Aug-22 12:53
protectorNelek25-Aug-22 12:53 
GeneralRe: After 18 years, Meta’s finally building Facebook a customer service division Pin
Greg Utas25-Aug-22 14:14
professionalGreg Utas25-Aug-22 14:14 
NewsElon Musk vs. Twitter: all the news about one of the biggest, messiest tech deals ever Pin
Sean Ewington25-Aug-22 11:46
staffSean Ewington25-Aug-22 11:46 
GeneralRe: Elon Musk vs. Twitter: all the news about one of the biggest, messiest tech deals ever Pin
obermd26-Aug-22 4:21
obermd26-Aug-22 4:21 
NewsThe rise of SQL Pin
Kent Sharkey24-Aug-22 12:16
staffKent Sharkey24-Aug-22 12:16 
GeneralRe: The rise of SQL Pin
Marc Clifton24-Aug-22 13:44
mvaMarc Clifton24-Aug-22 13:44 
GeneralRe: The rise of SQL Pin
maze325-Aug-22 3:20
professionalmaze325-Aug-22 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.