comp.lang.ada
 help / color / mirror / Atom feed
From: warwicks@telusplanet.net (Chris Warwick)
Subject: Re: How do I get this to work??
Date: 1999/01/16
Date: 1999-01-16T00:00:00+00:00	[thread overview]
Message-ID: <GIVn2.8028$Kg6.59441@news2.telusplanet.net> (raw)
In-Reply-To: 77b9cp$5kh$1@nnrp1.dejanews.com

In article <77b9cp$5kh$1@nnrp1.dejanews.com>, robert_dewar@my-dejanews.com wrote:

>I notice that a lot of people, especially former C
>programmers greatly overuse aliased variables. There
>was a reason for completely excluding such variables
>from the Ada 83 language, and good practice in Ada 95
>is to absolutely minimize their use.

>Remember that aliased variables were introduced for
>limited purposes in Ada 95, if you find yourself making
>everything aliased, you are probably not organizing
>things in an appropriate manner.

This thread has wandered off into the theory behind Ada, for that I apologize, 
and thank everyone for their patience...

I will admit some guilt at being a "reformed" C programmer... But, what I find 
odd is the concept that pointing to an object on the "stack" is poor practice. 

Even from my Ada83 days, the only "safe" way to do dynamic memory allocation 
was though the use of local variables on the stack. If I understand this 
concept, then the view is that it is better to point to a newly allocated 
buffer, then it is to point to a procedure's local variable. Given that most 
Ada compilers have no way to deallocate memory, I seem to be trading the 
potential for a pointer to exist past the life of the allocated memory for a 
program continously allocates memory...




  parent reply	other threads:[~1999-01-16  0:00 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-04  0:00 How do I get this to work?? Chris Warwick
1999-01-05  0:00 ` Chris Warwick
1999-01-05  0:00   ` Stephen Leake
1999-01-05  0:00     ` Tom Moran
1999-01-06  0:00       ` robert_dewar
1999-01-06  0:00         ` Larry Kilgallen
1999-01-06  0:00           ` Tom Moran
1999-01-06  0:00         ` Tom Moran
1999-01-07  0:00           ` robert_dewar
1999-01-07  0:00             ` Tom Moran
1999-01-10  0:00               ` robert_dewar
1999-01-10  0:00                 ` Tom Moran
1999-01-10  0:00                   ` robert_dewar
1999-01-10  0:00                   ` robert_dewar
1999-01-10  0:00                     ` Pat Rogers
1999-01-10  0:00                     ` Tom Moran
1999-01-06  0:00         ` Tom Moran
1999-01-07  0:00           ` robert_dewar
1999-01-07  0:00             ` Tom Moran
1999-01-10  0:00               ` robert_dewar
1999-01-06  0:00     ` robert_dewar
1999-01-06  0:00     ` Chris Warwick
1999-01-06  0:00       ` Tom Moran
1999-01-07  0:00       ` robert_dewar
1999-01-09  0:00         ` Chris Warwick
1999-01-09  0:00           ` Simon Wright
1999-01-10  0:00             ` robert_dewar
1999-01-11  0:00               ` Simon Wright
1999-01-16  0:00               ` Chris Warwick [this message]
1999-01-16  0:00                 ` Simon Wright
1999-01-16  0:00                 ` robert_dewar
1999-01-18  0:00                   ` Chris Warwick
1999-01-18  0:00                     ` Matthew Heaney
1999-01-16  0:00                 ` Matthew Heaney
1999-01-16  0:00                   ` robert_dewar
1999-01-18  0:00                   ` Chris Warwick
1999-01-18  0:00                     ` robert_dewar
1999-01-18  0:00                       ` dennison
1999-01-18  0:00                       ` Tucker Taft
1999-01-19  0:00                         ` Chris Warwick
1999-01-19  0:00                           ` robert_dewar
1999-01-20  0:00                             ` Jeff Carter
1999-01-20  0:00                               ` robert_dewar
1999-01-21  0:00                                 ` Chris Warwick
1999-01-19  0:00                           ` Stephen Leake
1999-01-19  0:00                           ` Tom Moran
1999-01-18  0:00                     ` dennison
1999-01-18  0:00                     ` Matthew Heaney
1999-01-09  0:00           ` Brian Rogoff
1999-01-10  0:00             ` Matthew Heaney
1999-01-07  0:00       ` Stephen Leake
1999-01-08  0:00         ` Simon Wright
1999-01-06  0:00   ` Simon Wright
1999-01-22  0:00   ` Nick Roberts
1999-01-05  0:00 ` Tom Moran
replies disabled

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