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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Substrings as argument to procedures/functions Date: Wed, 13 Apr 2016 13:54:25 +0200 Organization: Home - http://www.obry.net Message-ID: <1460548465.940.5.camel@obry.net> References: <2055a188-fb5f-496a-ab37-b25d81cebe1b@googlegroups.com> <5271bc70-bfea-4e2f-b4e3-6c847843f5b4@googlegroups.com> <9c28eac4-8edf-45dc-afcd-082abfd4cf4b@googlegroups.com> Reply-To: pascal@obry.net NNTP-Posting-Host: U5AgMblBq0UBfWivXp4tbg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Complaints-To: abuse@aioe.org X-Mailer: Evolution 3.18.5.1-1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:30094 Date: 2016-04-13T13:54:25+02:00 List-Id: Le mercredi 13 avril 2016 =C3=A0 04:43 -0700, reinkor a =C3=A9crit=C2=A0: > If a complex subroutine is made by a subcontract (in the country far > far away), > then it is in general a point to provide only the necessary > information > to make the subroutine? I mean, if paranoia is in charge ? :-) No the point is for programmers to stop assuming anything about the data passed as argument. And here Ada shine, it gives you 'First, 'Last, 'Range... As pointed by others this is one very strong point to avoid buffer overflows. --=20 Pascal Obry / Magny Les Hameaux (78) The best way to travel is by means of imagination http://v2p.fr.eu.org http://www.obry.net gpg --keyserver keys.gnupg.net --recv-key F949BD3B