Hacker News new | past | comments | ask | show | jobs | submit login

I stopped using Delphi after version 4, but I was curious, so I did some googling. Looks to me like forward declarations were still needed in Delphi 2010, at least for class declarations: https://stackoverflow.com/questions/2137030/cant-get-a-forwa....

Borland's Pascal compilers did have a way to disable bounds checking locally, with a special compiler directive comment: {$R-}. It took effect from where you used it, so you could do:

  {$R-}
  for i := 1 to 10 do
    writeln(myArray[i]);
  end;
  {$R+}
</nostalgia>



Yep I used R- a few times, just not everywhere. :)

Thanks for googling it.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: