I found this interesting about "sink"

Let it all hang out

I found this interesting about "sink"

PostPosted by ItzRav » Thu Mar 20, 2014 8:33 am

I assumed (incorrectly, it turns out) that Sink (←R) suppressed the result, i.e. "removed" the result entirely. But when I tried this:

Code: Select all
      a←⎕
⎕:
      ←9
      a
9

It obviously returned the result and assigned it to <a>. When I looked up Sink on the NARS2000 wiki http://wiki.nars2000.org/index.php/Sink, indeed it says "suppresses the display of R" (not suppresses the result). I found this interesting.
ItzRav
 
Posts: 26
Joined: Wed Jan 01, 2014 2:02 pm
Location: Bethesda, MD

Re: I found this interesting about "sink"

PostPosted by forummaster » Thu Apr 17, 2014 6:54 am

That's right. Each token has a NoDisplay flag that is set by "sink" and tested in the display function.
forummaster
 
Posts: 554
Joined: Wed Jan 23, 2013 1:00 pm


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron