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.7 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,75f02dbbddbbdc88 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.75.170 with SMTP id d10mr3478716pbw.6.1323912655788; Wed, 14 Dec 2011 17:30:55 -0800 (PST) Path: lh20ni23492pbb.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: "Rego, P." Newsgroups: comp.lang.ada Subject: Re: Pop function Date: Wed, 14 Dec 2011 17:23:44 -0800 (PST) Organization: http://groups.google.com Message-ID: <368454.115.1323912224385.JavaMail.geo-discussion-forums@yqni12> References: <27517259.83.1323907586856.JavaMail.geo-discussion-forums@yqgn9> <778917968345601399.621922martin-re.mo.ve.thedowies.com@news.btinternet.com> Reply-To: comp.lang.ada@googlegroups.com NNTP-Posting-Host: 189.18.155.47 Mime-Version: 1.0 X-Trace: posting.google.com 1323912655 8402 127.0.0.1 (15 Dec 2011 01:30:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 15 Dec 2011 01:30:55 +0000 (UTC) In-Reply-To: <778917968345601399.621922martin-re.mo.ve.thedowies.com@news.btinternet.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=189.18.155.47; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 X-Google-Web-Client: true Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-12-14T17:23:44-08:00 List-Id: > If Sender is null, your in trouble before you get to "begin". > Also, is it really ok to return 0 from an empty list rather than raising an > exception? That's the point. Actually I need to return some enumerated like NONE, but 0 would fit as well. > What does Sender "point to" on return if the head of the list is removed? I'd like to return the "next" in the list, or null (so "0" or some NONE), if the the next does not exist.