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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.8.3 with SMTP id n3mr2947844iga.0.1392429052796; Fri, 14 Feb 2014 17:50:52 -0800 (PST) X-Received: by 10.50.112.101 with SMTP id ip5mr113928igb.1.1392429052711; Fri, 14 Feb 2014 17:50:52 -0800 (PST) Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!uq10no21278657igb.0!news-out.google.com!h8ni13igy.0!nntp.google.com!c10no22809089igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 14 Feb 2014 17:50:52 -0800 (PST) In-Reply-To: <3kdtf9l42gimm37vgia3eibsmr638r27ig@4ax.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <87ha81u9r7.fsf@adaheads.sparre-andersen.dk> <3kdtf9l42gimm37vgia3eibsmr638r27ig@4ax.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <418563f9-4ec0-4eec-bb47-3a42a09fd19f@googlegroups.com> Subject: Re: confusing string error From: adambeneschan@gmail.com Injection-Date: Sat, 15 Feb 2014 01:50:52 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Original-Bytes: 2089 Xref: number.nntp.dca.giganews.com comp.lang.ada:184870 Date: 2014-02-14T17:50:52-08:00 List-Id: On Friday, February 14, 2014 4:46:51 PM UTC-8, ag...@drrob1.com wrote: Just one note: this comment: HOLDTKNBUF :=3D Null_unbounded_string; -- looks like Ada automatically=20 init's all declarations to either 0 or null, as suits the data type is wrong. Integers are not initialized to anything and cannot be counted o= n; same for floats, booleans, other enumeration types, etc. Access types *= are* initialized to null by default, though, and the language specifically = requires that Unbounded_String types be initialized by default. It's possi= ble that everything could get initialized to 0 in a particular implementati= on, though, either because the compiler vendors decided to make the code do= that, or the OS does that when loading the program, or often just by luck. -- Adam