Welcome, Guest. Please login or register.

Author Topic: Coding: CLI args parsing and resident purity  (Read 1977 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16881
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Coding: CLI args parsing and resident purity
« on: January 11, 2012, 12:50:08 AM »
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16881
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Coding: CLI args parsing and resident purity
« Reply #1 on: January 11, 2012, 01:10:37 AM »
Quote from: nyteschayde;675269
Thanks, you're both awesome!


Note carefully what Piru mentioned. Any handles to resources you acquire cannot be global or static. That includes library bases, file streams etc. It's pretty much "on-the-stack" or bust.
int p; // A