Re: memory management



"Jeffrey Carter" <spam@xxxxxxxx> wrote in message
news:0cTle.1206$s64.205@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Steve wrote:
>>
>> For 99% of applications you never need to deal with them.
>
> Of course not. That's approximately the percentage of applications that
> don't need access types.
>

It is kind of hard to dynamically create objects whos type is determined at
run time without them.

For example I wrote a data collection application that uses an abstract
"scanner" type for data collection. When the system initializes an instance
of a class derived from scanner is created and passed to the data collection
task. The type of scanner created is selected by a user parameter.

It's kind of hard to do this without access types. So, while I agree that
access types are needed for a lot fewer cases in Ada than other languages, I
disagree with the statement that a high percentage of applications don't
need them.

Steve
(The Duck)

> --
> Jeff Carter
> "Ditto, you provincial putz?"
> Blazing Saddles
> 86


.