[Jprogramming] Question regarding J lexing rules

2019-10-03 Thread ethiejiesa via Programming
Just beginning to learn J this week, I find myself binging the documentation and have some questions regarding J lexing. In particular, my question is about the sample J lexer presented in the dyadic ;: entry of the dictionary: https://www.jsoftware.com/help/dictionary/d332.htm Essentially, I'm

Re: [Jprogramming] Kirk's latest error

2019-10-03 Thread Raul Miller
Ok, I think I begin to understand... (I'm pretty sure you're saying this particular check is just about name re-use and maybe reference count handling, and that memory re-use or in-place array update happens elsewhere with additional tests.) Thanks, -- Raul On Thu, Oct 3, 2019 at 4:21 PM Henry

Re: [Jprogramming] Order of Execution

2019-10-03 Thread Raul Miller
Hmm... ({.% */@}.) 1 2 3 4 5 would actually work if we replaced 1 2 3 4 5 with an arbitrary different list of numbers. It would not work, though, if we replaced % with a different verb. Thanks, -- Raul On Thu, Oct 3, 2019 at 5:22 PM Nollaig MacKenzie wrote: > > I'm guessing > > %*/2 3 4

Re: [Jprogramming] Order of Execution

2019-10-03 Thread Nollaig MacKenzie
I'm guessing %*/2 3 4 5 wouldn't count On 2019.10.02 23:43:40, you, the extraordinary Skip Cave, spake thus: > > I can write: > 1%(2%(3%(4%5))) > > 1.875 > > > Using insert, I can simplify: > > %/1 2 3 4 5 > > 1.875 > > > Now I can write: > > (((1%2)%3)%4)%5 > > 0.008

Re: [Jprogramming] Kirk's latest error

2019-10-03 Thread Henry Rich
Yes, everything is safe to use.  The message (which obviously I didn't mean to send to the Forum) was about a bug name =: (verb adverb_locative_) verb noun which messed up the execution of the adverb. In my terminology, a verb is 'assignment-safe' if it is ok to execute the verb in-place whe

Re: [Jprogramming] Kirk's latest error

2019-10-03 Thread Raul Miller
V0=: V1=: ,~ Safe? Thanks, -- Raul On Thu, Oct 3, 2019 at 12:59 PM Henry Rich wrote: > > This turned out to be a very deep problem. After I fixed it & ran his > code, I get a crash in mema where Windows says memory has been modified > out of bounds. I am assuming this is his error, but in c

[Jprogramming] Kirk's latest error

2019-10-03 Thread Henry Rich
This turned out to be a very deep problem.  After I fixed it & ran his code, I get a crash in mema where Windows says memory has been modified out of bounds.  I am assuming this is his error, but in case not I think you should give him a version with the latest fix to test with. It turned out