> However I had to use "Int" instead of "int":
Ah, "int" is the "lower" level, native integer and "Int" is the raku. An "int"
is immutable or something? The page
https://docs.raku.org/language/numerics#Native_numerics
has:
my int $x = 2โถยณ-1;
say $x; # OUTPUT: ยซ9223372036854775807โคยป
say ++$x; # OUTPUT: ยซ-9223372036854775808โคยป
But I see
> my int $x = 2โถยณ-1
9223372036854775807
> say $x
9223372036854775807
> say ++$x
Cannot find method 'qast' on object of type NQPMu
NQP (Not Quite Perl) Mu has no "qast" method - qast is the successor to past,
Parrot AST and AST is Abstract Syntax Tree. I guess $x *is * the int, not an
container/variable holding an int value.
Man, there's a lot I don't know about raku! That section on colon pairs
cleared up a lot.
From: William Michels
Sent: Monday, May 24, 2021 11:47 PM
To: perl6-users
Subject: Re: File::Find using a junction with exclude
CAUTION - EXTERNAL:
Hi Andy,
A quick test with my (older) Raku install and I was able to get one of the
examples (Daniel's) below to work. However I had to use "Int" instead of "int":
user@mbook:~$ raku
Welcome to ๐๐๐ค๐ฎ๐๐จโข v2020.10.
Implementing the ๐๐๐ค๐ฎโข programming language v6.d.
Built on MoarVM version 2020.10.
To exit type 'exit' or '^D'
> my int $f = 0;
0
> sub foo($) { ++$f }('a' | 'b,b' | 'c');
Cannot find method 'qast' on object of type NQPMu
> my Int $g = 0;
0
> sub foo($) { ++$g }('a' | 'b,b' | 'c');
any(1, 2, 3)
>
HTH, Bill.
On Mon, May 24, 2021 at 2:40 PM Andy Bach
mailto:andy_b...@wiwb.uscourts.gov>> wrote:
> Cannot sent this email in 'plain text' mode as ATOM SYMBOL disappears.
I was impressed I could copypasted that in the text/terminal sesion of raku's
REPL and have it work. As a matter of fact:
> sub foo($) { ++โ$c }('a' | 'b,b' | 'c');
any(1, 2, 3)
> say $c;
3
but, trying it without the cabbage, er, atomic symbol
> my atomicint $d = 0;
0
> sub foo($) { ++$d }('a'|'b,b'|'c');
Cannot find method 'qast' on object of type NQPMu
> my int $f = 0;
0
> sub foo($) { ++$f }('a' | 'b,b' | 'c');
Cannot find method 'qast' on object of type NQPMu
but my raku's a tad long in tooth
$ raku -v
This is Rakudo version 2020.05.1 built on MoarVM version 2020.05
From: William Michels mailto:w...@caa.columbia.edu>>
Sent: Monday, May 24, 2021 2:41 PM
To: perl6-users mailto:perl6-users@perl.org>>
Subject: Re: File::Find using a junction with exclude
CAUTION - EXTERNAL:
WATs are everywhere, and (I'm not trying to pick on one language
here), I find this SO question to be intruiging:
https://stackoverflow.com/q/58340585/7270649
Joseph (and Ralph): thanks for starting off this conversation!
Fernando and Vadim: amazed at your code!
Andy: good questions always welcome!
Daniel: Thank you for your confirmation on EVAL. Also, I tried parsing
the ATOM SYMBOL character to look at classification, and this is the
best I could do (in the Raku REPL):
> say "โ".uniprop
So
> dd "โ".comb>>.uniprop
("So",)
Nil
> say "{uniparse 'ATOM SYMBOL'}"
โ
> say "{uniparse 'ATOM SYMBOL'}".uniprop
So
> say "{uniparse 'ATOM SYMBOL'}".uniprop('Alphabetic')
False
HTH, Bill.
PS. Cannot sent this email in 'plain text' mode as ATOM SYMBOL disappears.
On Mon, May 24, 2021 at 11:28 AM Daniel Sockwell
mailto:dan...@codesections.com>> wrote:
> Oh, and WAT is [short for] "Weird/will Ass Thing"?
No, it's not an abbreviation for anything โ it's the word "what", but
pronounced in a way that
indicates the speaker is surprised/confused. More specifically, it's a
reference to the WAT talk (a
really good one, even if it is about a different language)
https://www.destroyallsoftware.com/talks/wat
(All of that is pretty much strait from the glossary, by the way)
https://docs.raku.org/language/glossary#index-entry-WAT
โ codesections
CAUTION - EXTERNAL EMAIL: This email originated outside the Judiciary. Exercise
caution when opening attachments or clicking on links.
CAUTION - EXTERNAL EMAIL: This email originated outside the Judiciary. Exercise
caution when opening attachments or clicking on links.