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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Introductory Presentations, especially aimed at C++ programmers! Date: Thu, 15 Dec 2016 13:27:43 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <1905815374.502825168.454102.laguest-archeia.com@nntp.aioe.org> <877f7b5llo.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 15 Dec 2016 20:26:26 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="c792994b68714a610d497daea35e6e89"; logging-data="25413"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AA/mWzayZ+Jqqf9nD/zqa2z5A5h3znL0=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: Cancel-Lock: sha1:J7OkJ72qhILqAWGRls46T8IJTwk= Xref: news.eternal-september.org comp.lang.ada:32854 Date: 2016-12-15T13:27:43-07:00 List-Id: On 12/15/2016 01:14 PM, Niklas Holsti wrote: > On 16-12-15 02:00 , Jeffrey R. Carter wrote: > >> Also >> >> return Line & Get_Line; >> >> is tail recursion; > > No, the last operation called is "&", not Get_Line. In Erlang, list_length ([]) -> 0; list_length ([First | Rest]) -> 1 + list_length (Rest). is considered tail recursion and is required to be optimized away, so that's how I was using the term. -- Jeff Carter "I'm particularly glad that these lovely children were here today to hear that speech. Not only was it authentic frontier gibberish, it expressed a courage little seen in this day and age." Blazing Saddles 88