www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/05/07:31:14

Message-Id: <3.0.5.32.19980205125943.007b3180@math.amu.edu.pl>
Date: Thu, 05 Feb 1998 12:59:43 +0100
To: djgpp AT delorie DOT com
From: Maciej Radziejewski <maciejr AT math DOT amu DOT edu DOT pl>
Subject: Re: Freeing static vars
In-Reply-To: <199802050138.RAA05569@adit.ap.net>
Mime-Version: 1.0

At 17:38 98-02-04 -0800, Nate Eldredge wrote:
>At 05:07  2/4/1998 +0200, S. M. Halloran wrote:
>>> 
>>> Rylan wrote:
>>> > > Is there anyway to free static variables under DJGPP when they have
>>> > > outlived their usefulness?
>>> > 
(cut)
>

Perhaps it is too obvious to write, but isn't this accomplished in C++
by defining a local scope and declaring the variables inside it?
The variables will be destroyed upon leaving the local scope.

Maciej.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019