logoalt Hacker News

electroly10/02/20241 replyview on HN

Which part do you think would be rejected? This code is an example from the z/OS COBOL documentation--I'm quite sure it works.


Replies

palisade10/02/2024

The heap stuff is new I guess, we didn't have that back when I was writing programs in it. So, yea, not so safe anymore. :D I take back what I said about it being safer then. I can't go back and edit my original post, it's been too long.

The compiler did normally warn for data bounds checking, so I figured it would in this case. If that's not the case anymore then I'm wrong.