comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: STATIC Variables
Date: 1998/07/23
Date: 1998-07-23T00:00:00+00:00	[thread overview]
Message-ID: <dewar.901221047@merv> (raw)
In-Reply-To: 35B6EC76.ED3B1493@infaut.et.uni-magdeburg.de

Marc asks about static variables in Ada.

Unlike C, Ada always requires that the lifetime of a variable match the
corresponding lifetime of its declaration.

Static variables a la C violate this rule of course.

Howver, it is absolutely standard practice to get exactly this same
effect by simply including the necessary variables at the package
body level (i.e. put them in the package body in which your procedure
bodyt is declared).





  reply	other threads:[~1998-07-23  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-23  0:00 STATIC Variables Marc Enzmann
1998-07-23  0:00 ` Robert Dewar [this message]
1998-07-23  0:00 ` Corey Ashford
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox