Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bug in REPL

0 views
Skip to first unread message

ToddAndMargo via perl6-users

unread,
Nov 25, 2022, 12:00:04 AM11/25/22
to perl6-users
Fedora 36
rakudo-pkg-2022.7.0-03.x86_64


> use NativeCall

> $j =6; $k = CArray[uint8].new(0xFF xx $j ); print $j ~ "\n";
Cannot find method 'qast' on object of type NQPMu


REPL does not like the $j.

rir

unread,
Nov 25, 2022, 1:15:04 PM11/25/22
to ToddAndMargo, perl6-users
This works for me when I add a couple of 'my's for $j and $k. So it
seems a bug to me. Environment details follow signature.

My usual plaint with the REPL is just that it is a REPL and so cannot
always behave like the compiler unless it gets an entire program in one
Read and has not polluted the Eval with state saved from a prior Loop.
Which is what makes it great for snippets; but allows the occasional
false failure.

Maybe worse is that it helps me be bad-lazy about typing ';'.


➜ ~ raku -v
Welcome to Rakudo™ v2022.03.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2022.03.
➜ ~ uname -a
Linux shrew 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux

0 new messages