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-Thread: 103376,6c8d87b37a287813 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!multikabel.net!feed20.multikabel.net!skynet.be!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: De-serializing and stack sizes Date: Sat, 02 Sep 2006 11:20:40 +0100 Organization: Pushface Message-ID: References: <4lrakfF3b2jqU1@individual.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1157192440 19729 62.49.19.209 (2 Sep 2006 10:20:40 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 2 Sep 2006 10:20:40 +0000 (UTC) Cancel-Lock: sha1:jXtA9FrqjXSx8IqRVX06BrNgSu8= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:6443 Date: 2006-09-02T11:20:40+01:00 List-Id: "Alex R. Mosteo" writes: > Item : constant Item_Access := new Item_Type'(Item_Type'Input (Stream)); > > The 'Input attribute is trying to return the object in the stack and > so it doesn't work. My items are around 20 MB in size (now, they > could grow bigger) and I'd like not to have to raise my stack to > these sizes (also making it doable from the environment task would > be a plus). Could you maybe override Item_Access'Input? (or even 'Read? I came across a GNAT bug a while back, possibly 3.16, where default 'Input didn't use overridden 'Read if the type was private ..)