2009-12-15

Uninitialized storage (2)

It is generally a Very Bad Idea to make any assumptions about the contents of uninitialized storage.

What might work today may fail miserably tomorrow, without warning and without apparent cause.

If you care about it, then initialize it.

3 comments:

  1. LOCAL STORAGE SECTION?

    ReplyDelete
  2. LOCAL STORAGE is an excellent solution, but is not widely known. I see a lot of recently created COBOL code out there that is written as if COBOL 85 had never existed.

    ReplyDelete
  3. To follow up, I broached the idea of LOCAL STORAGE with an IMS systems programmer. He rejected the idea because of the extra overhead it would entail to acquire and initialize storage for every iteration of the program.

    ReplyDelete