Re: Help needed for ada package



strictly_mk@xxxxxxxxxxx wrote:

> type Society_Ptr is access all Society;
>
> Pointer : Society_Ptr;

Are you sure you need a pointer. Most Ada compilers won't have a problem
creating the even a large array in static memory:

http://en.wikibooks.org/wiki/Programming:Ada:Types:array

Do you really need "access all"

http://en.wikibooks.org/wiki/Programming:Ada:Types:access#Access_vs._access_all

And last not least: there is no "new" to be seen anywhere:

http://en.wikibooks.org/wiki/Programming:Ada:Types:access#Creating_object_in_a_storage_pool

Martin

--
mailto://krischik@xxxxxxxxxxxxxxxxxxxxx
Ada programming at: http://ada.krischik.com

.



Relevant Pages