From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8eff44ec1bcf8433 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-18 12:03:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Container reqs Date: 17 Oct 2001 06:55:39 +0100 Organization: Pushface Message-ID: References: <9qctpn$lil$1@news.huji.ac.il> <3BCA173D.FA305845@worldnet.att.net> <9qfgl9$7sb$2@news.huji.ac.il> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 1003431742 nnrp-13:9127 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 17 Oct 2001 05:55:42 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:14909 Date: 2001-10-17T05:55:42+00:00 List-Id: "Ehud Lamm" writes: > James Rogers wrote in message > news:3BCA173D.FA305845@worldnet.att.net... > > > > > > For the unbounded containers we may want versions allowing one to > > designate the storage pool used. > > What's the best way to do this? The BCs now say eg with System.Storage_Pools; generic Storage : in out System.Storage_Pools.Root_Storage_Pool'Class; package BC.Containers.Collections.Unbounded is > Does this mean that we would have to implement useful storage pools as part > of the effort, and if so - which? and it seems you can get away with with System.Storage_Pools; package BC.Support.Standard_Storage is type T is access Integer; -- arbitrary subtype Pool : System.Storage_Pools.Root_Storage_Pool'Class renames T'Storage_Pool; end BC.Support.Standard_Storage; (ObjectAda & GNAT) It would be Quite Nice if there were standardised access to the system's default Storage_Pool, though I can see that if different types had to be allocated from different pools this might be hard.