From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from duke.felloff.net ([216.126.196.34]) by ewsd; Fri Nov 16 02:32:35 EST 2018 Message-ID: <748D0B713A4A68575E96BB9C0FF74800@felloff.net> Date: Fri, 16 Nov 2018 08:32:27 +0100 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] man rc patch In-Reply-To: ED93129281C2B38C82B187BBFB6E585D@musolino.id.au MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: object-oriented pipelining DOM engine metadata-aware controller >> + if(star && 1<=n && n<=count(star)){ >> + while(--n) star = star->next; >> + a = newword(star->word, a); >> + } > The condition is exactly the same as is in Xdol and it does work. > I think you've misread it. yes, its the same as Xdol(), thats precisely the problem. i was refering to the use of $" to avoid checking for null list manually: >>> having the $"n is handy, as one does not have to wrap it in an if >>> statement if (~ $#n 0) to avoid checking for null values. term% *=(1) term% echo $#1 1 term% echo $#2 0 term% echo $1^$2 rc: null list in concatenation -- cinap