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,c0d4e990924eb044 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!feed-me.highwinds-media.com!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe11.ams2.POSTED!40385e62!not-for-mail Message-ID: <49BADE21.2030903@bredband.net> From: Per Sandberg User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Newbie question -- dereferencing access References: <72516b38-1711-4588-b53b-7b42773f70c2@w34g2000yqm.googlegroups.com> <1IednThMP8E8sCfUnZ2dnUVZ8suWnZ2d@posted.plusnet> <71ut2oFn4m2pU1@mid.individual.net> <49BA8A57.7090200@tgrowe.plus.net> <49ba8f44$0$31873$9b4e6d93@newsspool3.arcor-online.net> <49baa9f6$0$14898$4f793bc4@news.tdc.fi> <67GdnanSItDTTyfUnZ2dnUVZ8iyWnZ2d@posted.plusnet> In-Reply-To: <67GdnanSItDTTyfUnZ2dnUVZ8iyWnZ2d@posted.plusnet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Fri, 13 Mar 2009 22:31:27 UTC Date: Fri, 13 Mar 2009 23:28:49 +0100 Xref: g2news1.google.com comp.lang.ada:4121 Date: 2009-03-13T23:28:49+01:00 List-Id: If maximum length of strings have impact on your timing it means that you are talking about nanoseconds and in that case many other things have much more impact on your timing such as context switches, critical regions, flushing of cashes in the CPU etc etc and on top of that brand of CPU, compiler as always (the language will of course help you specify your constraints but in the end reality hits). /Per Tim Rowe wrote: > Niklas Holsti wrote: > >> If I wanted to discard the storage of an Unbounded_String variable S >> at some point in the program, before S goes out of scope, I would >> assign S := Null_Unbounded_String. This is likely to discard the >> storage for S, but I think the Ada standard does not guarantee that it >> happens at the assignment; it might happen later. > > Much as I'm used to with Java and C#; thanks. I'd need to know if I were > doing hard real time, but then if I don't know a maximum length for a > string I couldn't show compliance with hard real time constraints > anyway, could I?