9front - general discussion about 9front
 help / color / mirror / Atom feed
From: cinap_lenrek@felloff.net
To: 9front@9front.org
Subject: Re: [9front] man rc patch
Date: Fri, 16 Nov 2018 08:32:27 +0100	[thread overview]
Message-ID: <748D0B713A4A68575E96BB9C0FF74800@felloff.net> (raw)
In-Reply-To: ED93129281C2B38C82B187BBFB6E585D@musolino.id.au

>>  +               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


             reply	other threads:[~2018-11-16  7:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-16  7:32 cinap_lenrek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-11-16  0:47 Alex Musolino
2018-11-15 19:17 cinap_lenrek
2018-11-15 18:00 cinap_lenrek
2018-11-11  6:59 Alex Musolino
2018-11-11 11:32 ` Ethan Gardener
2018-11-11 17:14   ` Joe M
2018-11-11 17:16     ` Joe M
2018-11-14 15:56       ` Ethan Gardener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=748D0B713A4A68575E96BB9C0FF74800@felloff.net \
    --to=cinap_lenrek@felloff.net \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).