Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
nine Finally making some real progress on multi support in RakuAST :) Introduced a RakuAST::VarDeclaration::Implicit::Block class for adding a generated lexical declaration of the proto's AST (and using an ::Implicit::Constant declaration for the compile time value) 09:24
Most simple example with a generated proto works. Actual multi displatch yet to come: Ambiguous call to 'substtest(Str)'; these signatures all match: (;; Str $d) (;; Int $i)
lizmat OOC: what makes the NEXT phaser different from e.g. LAST phaser: github.com/rakudo/rakudo/blob/mast....nqp#L2347 11:10
in that it doesn't need an nqp::captureinnerlex like LAST / QUIT / CLOSE do ?
lizmat m: use nqp; my $h := nqp::hash("a",42); nqp::deletekey($h,"a") 12:55
camelia ( no output )
lizmat hmmm
m: use nqp; my $h := nqp::hash("a",42); say nqp::deletekey($h,"a") 12:58
camelia ===SORRY!===
0 flag for arg 1 with kind 0
Voldenet > deletekey(%hash, str $key –> %hash) 13:23
just thinking out loud - wouldn't it be more useful to get bool out of that
(source: github.com/Raku/nqp/blob/edda8c/do...deletekey) 13:26
lizmat or the actual value :-) 14:09
Nicholas need to go AFK again, but IIRC I made a MoarVM branch with an op that did "delete returning hash value" and hoped someone else could take it further to make a rakudo change to use it to return the value (in one op, rather than two currently) 14:36
lizmat I'll gladly do the Rakudo part for that :-) 14:37