CodeSOD: The Magic Array
thedailywtf.com·7h
🔗Concatenative Programming
Preview
Report Post

Betsy writes:

I found this snippet recently in a 20-year-old RPG program.

Ah, yes, twenty years ago, RPG, that means this was written in the 1970s. What? No. That can’t be right? That’s how long ago?

Joking about my mortality aside, in the early oughts, most of the work around RPG was in keeping old mainframe systems from falling over. That entirely new code was being written, that new projects were being started twenty years ago is not a surprise, but it’s unusual enough to be remarkable. That said, the last release of RPG was in 2020, so it clearly keeps on keeping on.

In any case, this developer, we’ll call them "Stephen", needed to create an array containing the numbers 12 through 16.

Let’s take a peek at the code.

D RowFld          S              3  0 DI...

Similar Posts

Loading similar posts...