Re: [Jprogramming] (no subject)

2019-04-11 Thread bill lam
If you follow java's dogma that each class should be contained in 1 file and with the same name as the class defined, then it will be easier to blame. Thu, 11 Apr 2019, Ian Clark написал(а): > Henry wrote: > > …and a global assignment only for the place that you know is the top > level? > > Troub

Re: [Jprogramming] Regex merge with multiple groups

2019-04-11 Thread Nimp O
Ah, I knew there should be an easy way to accomplish that. Thank you Raul for the workaround and the explanation about the expected ranks. From: Programming on behalf of Raul Miller Sent: Thursday, April 11, 2019 1:52 PM To: Programming forum Subject: Re: [Jprog

Re: [Jprogramming] Regex merge with multiple groups

2019-04-11 Thread Raul Miller
Ok, looking at the error it gives, it seems that there's a problem with the current implementation of rxmerge where it doesn't deal with some match arguments. You can work around that problem for this example like this: (,new) (,/(pat;,1+i.4) rxmatches test) rxmerge test a ( 3,4 5,6

Re: [Jprogramming] Regex merge with multiple groups

2019-04-11 Thread Raul Miller
And... I see I misread your post... hang on and ignore my previous message, I've got some other things I'm focusing on (or supposed to be focussing on), but this looks like something that should be easy to answer sorry about the noise... -- Raul On Thu, Apr 11, 2019 at 1:39 PM Raul Miller

Re: [Jprogramming] Regex merge with multiple groups

2019-04-11 Thread Raul Miller
P.S. Assuming that you do want to replace the matched digit sequences with their offsets, you probably want to use this rxmerge: https://code.jsoftware.com/wiki/Guides/Regular_Expressions/Verbs#rxmerge You'll need the match data (offsets and length) to make this work. I hope this helps, -- Rau

Re: [Jprogramming] Regex merge with multiple groups

2019-04-11 Thread Raul Miller
I get a different result from what you got, which suggests you had changed your regexp, perhaps to something like this: pat =: '\(\s+(\d+)\,(\d+)\s+(\d+)\,(\d+)\s+\)' Ah... I now see that your followup has an updated pattern... --- Anyways, what I don't understand is what you meant

Re: [Jprogramming] Regex merge with multiple groups

2019-04-11 Thread Nimp O
I'm sorry, the pattern should be: pat =: '\( (\d+)\,(\d+)\s+(\d+)\,(\d+)\s+\)' From: Programming on behalf of Nimp O Sent: Thursday, April 11, 2019 1:01 PM To: programm...@jsoftware.com Subject: [Jprogramming] Regex merge with multiple groups Hello everyone, Her

[Jprogramming] Regex merge with multiple groups

2019-04-11 Thread Nimp O
Hello everyone, Here is a minimal working example of what I'm trying to accomplish: load'regex' pat =: '\( (\d)\,(\d)\s+(\d)\,(\d)\s+\)' test=: 0 : 0 a ( 2,3 4,5 ) c ( 10,11 12,13 ) ) So using the regex pattern I was able to extract the numbers from this string. Each

Re: [Jprogramming] plot fails every now and then

2019-04-11 Thread Lippu Esa
Hi Chris, I'll try to capture a repeatable sequence to generate the error. The challenge is that the error occurs maybe once or twice a week. Best Regards, Esa -Original Message- From: Programming On Behalf Of chris burke Sent: Thursday, April 11, 2019 3:31 PM To: Programming forum S

Re: [Jprogramming] plot fails every now and then

2019-04-11 Thread chris burke
Please see if you can provide a sequence of steps that reproduce the problem, so we can track it down. Thanks. On Thu, Apr 11, 2019 at 12:12 AM Lippu Esa wrote: > Thanks Bill! > > I got the error again and tried wd 'reset' as you suggested. It fixed the > error. > > Much, much more convenient th

Re: [Jprogramming] (no subject)

2019-04-11 Thread Ian Clark
Henry wrote: > …and a global assignment only for the place that you know is the top level? Trouble is, if you're using JQt IDE to maintain an addon, the top level changes. ++ During development, it is your buildfile: /myaddon/source/build.ijs. ++ But once a user downloads it via pacman, it is myad

Re: [Jprogramming] plot fails every now and then

2019-04-11 Thread Lippu Esa
Thanks Bill! I got the error again and tried wd 'reset' as you suggested. It fixed the error. Much, much more convenient than restarting J. Great! Esa -Original Message- From: Programming On Behalf Of bill lam Sent: Monday, April 8, 2019 1:45 AM To: Programming forum Subject: Re: [Jpr