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: a07f3367d7,4cad17e8664256c9 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.skynet.be!195.238.0.222.MISMATCH!newsspl501.isp.belgacom.be!tjb!not-for-mail Date: Thu, 28 May 2009 15:57:54 +0200 From: Olivier Scalbert User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Allocation questions References: <4a1e5d9e$0$2868$ba620e4c@news.skynet.be> <106ssailgl19b$.1sngvazrm7u5w.dlg@40tude.net> <40a2a911-6b92-407e-b1e3-deabf154892f@x6g2000vbg.googlegroups.com> <4a1e8454$0$2861$ba620e4c@news.skynet.be> <78f30732-8d8d-4009-b9ed-ba19d275a5d9@f16g2000vbf.googlegroups.com> In-Reply-To: <78f30732-8d8d-4009-b9ed-ba19d275a5d9@f16g2000vbf.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4a1e9875$0$2853$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 26f6c557.news.skynet.be X-Trace: 1243519093 news.skynet.be 2853 87.65.198.18:49029 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news2.google.com comp.lang.ada:6072 Date: 2009-05-28T15:57:54+02:00 List-Id: Martin wrote: >> >> 2 more questions: >> >> 1) In fact (due to my background!), I would like to use the dot notation: >> object.method. >> So I have add "tagged": >> >> type Delay_Type (Size : Nb_Of_Samples := 0) is tagged private; >> ... >> private >> type Delay_Type (Size : Nb_Of_Samples :=0) is tagged record >> ... >> >> When I compile, I have: >> "discriminants of tagged type cannot have defaults" >> How can I fix it ? > > Just remove the " := 0" bit. Ok, thanks. > >> 2) If Nb_Of_Samples range is too large, around 1..5_000_000, I have a >> nice Segmentation fault. How can I fix that ? > > Works fine with 2_000_00 with GNAT GPL 2009 Win32... ;-) > > What OS are you using? > > Cheers > -- Martin A 32 bits linux + gnat 4.3.3 Olivier