"Has something properly succeeded and if not is there cleanup needed?" is the job of scope and possibly (but ugly and non-elegantly) exceptions.
I'd seriously *hate* to abuse invariants for that. The job of
invariants is to give guarantees about state - not to manage e.g.
allocations, creations, cleanups, etc.
- DIP44: scope(class) and scope(struct) H. S. Teoh
- Re: DIP44: scope(class) and scope(struct) Joseph Rushton Wakeling
- Re: DIP44: scope(class) and scope(struct) Tobias Pankrath
- Re: DIP44: scope(class) and scope(struct) Joseph Rushton Wakeling
- Re: DIP44: scope(class) and scope(struct) Tobias Pankrath
- Re: DIP44: scope(class) and scope(str... Ramon
- Re: DIP44: scope(class) and scope(struct) Simen Kjaeraas
- Re: DIP44: scope(class) and scope(str... Joseph Rushton Wakeling
- Re: DIP44: scope(class) and scope(struct) Andrej Mitrovic
- Re: DIP44: scope(class) and scope(struct) H. S. Teoh
- Re: DIP44: scope(class) and scope(struct) Andrej Mitrovic
- Re: DIP44: scope(class) and scope(str... H. S. Teoh
- Re: DIP44: scope(class) and scope(str... Ramon
- Re: DIP44: scope(class) and scope... Simen Kjaeraas
- Re: DIP44: scope(class) and scope... Ramon
- Re: DIP44: scope(class) and scope(struct) Meta
