Re: junctions and parenthesis

2020-06-24 Thread William Michels via perl6-users
You're quite correct Brad, so maybe I mis-stated my observation: > any( eq any()) any(any(False, False)) > eq any() any(False, False) > Would the first line of code above code (wrapping an 'eq' call inside an any-junction, along with another any-junction) be written by a Raku programmer? If

Re: junctions and parenthesis

2020-06-24 Thread Brad Gilbert
It does actually make sense to call any on any say (1, 2, 3).any + (4, 5, 6).any # any(any(5, 6, 7), any(6, 7, 8), any(7, 8, 9)) On Wed, Jun 24, 2020 at 6:22 PM William Michels via perl6-users < perl6-users@perl.org> wrote: > I evaluated Joe's code using Patrick's explanation of

Re: junctions and parenthesis

2020-06-24 Thread William Michels via perl6-users
I evaluated Joe's code using Patrick's explanation of parentheses-less parsing (in the REPL): > say(so(any( eq any(; False > say any( eq any()); any(any(False, False)) > Q1. Does it make any sense to call "any" on "any" (i.e. nested "any" calls)? Could this anti-pattern be used to generate a

Re: Access violation when creating class instance

2020-06-24 Thread Will Coleda
The download page requires an update. You can get 2020.05.1 here: https://rakudo.org/downloads/star/ On Wed, Jun 24, 2020 at 6:11 AM WFB wrote: > > Thanks JJ, > > I am using Rakudostar on Windows and 2020.01 is the current released version > so far. > I will try to reduce the code a bit more

Re: junctions and parenthesis

2020-06-24 Thread Joseph Brenner
> I would suggest calling .any on the list, that gives you just the tight > preference you want; even if there were no .any method available on the > object you've got, or you want a different function, you can . That's a good thought. The code wouldn't read as nicely, though (the syntax is

Re: junctions and parenthesis

2020-06-24 Thread Timo Paulssen
On 22/06/2020 20:12, Joseph Brenner wrote: > > Speculating wildly: could there be a need for a different type of > function with different precedence? I would suggest calling .any on the list, that gives you just the tight preference you want; even if there were no .any method available on the

Re: Access violation when creating class instance

2020-06-24 Thread WFB
Thanks JJ, I am using Rakudostar on Windows and 2020.01 is the current released version so far. I will try to reduce the code a bit more but it is just one class definition together with an instantiation. Not sure I can pack that in a one liner, but will try. The access violation comes probably

Re: Access violation when creating class instance

2020-06-24 Thread JJ Merelo
El mié., 24 jun. 2020 a las 10:05, WFB () escribió: > Hi all, > > I have an access violation on Windows for one of my classes and think it > is a bug, but not entirely sure about that. > > Every now and then creating a class instance ended my script with error: > Process finished with exit code

Access violation when creating class instance

2020-06-24 Thread WFB
Hi all, I have an access violation on Windows for one of my classes and think it is a bug, but not entirely sure about that. Every now and then creating a class instance ended my script with error: Process finished with exit code -1073741819 (0xC005) The class looks like that: class