»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
squashable6 🍕🍕🍕 First contribution by ugexe++! ♥ 00:07
zachk how can do I something like : say "my dog's name is $d.name" ? 00:13
atweiden-air zachk: class Dog { has $.name is required }; my Dog $d .= new(:name<fido>); say "my dog's name is {$d.name}"; 00:16
zachk thank you atweiden-air 00:17
jnthn Can also do it with $d.name() 00:19
zachk nice, now how come just $d.name doesn't work? is it because of parsing? 00:20
holyghost because $d.name is undefined then and you don't parse it 00:22
jnthn It was decided to require some kind of postcircumfix on the end of dereference-like things inside of interpolation 00:23
[email@hidden.address] and "data_$i.txt" being two obvious cases where it's more likely to be something to trip over instead of a help
squashable6 🍕 vrurg++ opened issue “"inconsistent bind resul…”: github.com/rakudo/rakudo/issues/2582 00:31
🍕🍕🍕 First contribution by vrurg++! ♥
vrurg I've managed to narrow down the cause to re-exporting of a type via sub EXPORT. 00:32
pony I get this error trying to compile the latest rakudo star on OpenBSD pastebin.com/Q4vcG7zV 01:31
holyghost If it doesn't work, 2018.04 compiles 01:32
pony ahh
holyghost If that doesn't work, 2018.04 compiles, on 5.7 though 01:35
s/2018/2017
pony 2017.10 is in packages 01:36
I just wanted 2018.10 :) 01:37
SmokeMachine m: infix:<||>(42, 42) {“ok”}; say (42 || 42) 02:56
camelia 5===SORRY!5=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> 3infix:<||>(42, 42)7⏏5 {“ok”}; say (42 || 42)
expecting any of:
SmokeMachine m: multi infix:<||>(42, 42) {“ok”}; say (42 || 42) 02:57
camelia 42
SmokeMachine :( 02:58
daotoad1 perl6: class Foo { has Int @.attr; }; my %foo = attr => [ 1, 2, 4 ]; my $foo = Foo.new(|%foo); 03:08
camelia Type check failed in assignment to @!attr; expected Int but got Array ($[1, 2, 4])
in block <unit> at <tmp> line 1
Type check failed in assignment to @!attr; expected Int but got Array ($[1, 2, 4])
in block <unit> at <tmp> line 1
daotoad1 I keep running into issues like this with slips and collection type constraints. What am I doing wrong? And what part of the docs will set me straight? 03:09
timotimo committable6: releases class Foo { has Int @.attr; }; my %foo = attr => [ 1, 2, 4 ]; my $foo = Foo.new(|%foo);
committable6 timotimo, gist.github.com/b66829a313b214c5d1...3f620033c1
timotimo it's probably a difference between assignment and binding 03:10
m: my @bar = 1, 2, 3; my Int @foo = @bar
camelia ( no output )
timotimo ^- this only works because the original @bar is iterated over and the individual items are put into @foo 03:11
but i guess when you have @.attr and create the object with the default new method it will try to bind it?
m: class Foo { has Int @.attr }; @(Foo.new.attr) = 1, 2, 3, 4
camelia ( no output )
daotoad1 If I say: %foo.perl, I get {:attr($[1, 2, 4])} 03:15
timotimo ooh
it's containerized, so it'll actually do exactly what it says in the error message
it tries to put the array into the first slot of the @.attr array
daotoad1 How do I prevent the containerization? 03:16
timotimo and then it sees that what was supposed to be an Int was actually an Array
m: my %attrs; %attrs<attr> := [1, 2, 3]; dd %attrs
camelia Hash %attrs = {:attr([1, 2, 3])}
timotimo that's one way i know of
m: my %attrs = foo => [1, 2, 3]<>; dd %attrs
camelia Hash %attrs = {:foo($[1, 2, 3])}
timotimo this doesn't work, the hash constructor is apparently what creates the scalars 03:17
daotoad1 perl6: class Foo { has Int @.attr; }; my $foo = attr => [ 1, 2, 4 ]; my $f = Foo.new(|$foo); 03:21
camelia ( no output )
timotimo interesting, it works with a pair, then? then you'd perhaps have to have one slip for every argument 03:22
daotoad1 Making a List also seems to work. 03:28
But as soon as I make a hash, either with a hash constructor on the RHS, or a sigil on the LHS, failure. 03:29
perl6: my %foo = attr => |[1,2,4]; say %foo.perl 03:34
camelia {:attr($(slip(1, 2, 4)))}
daotoad1 Which also works for initializing an object. 03:35
daotoad1 Since there's an easy, non-verbose way of saying something that works, I am happy to see this as a case of "my expectations were broken". 03:39
But I am pretty sure that this is also not documented anywhere. I'm not sure what needs to change to help people expect this result. 03:40
timotimo finding the right place in the docs to put something is a bit of an art 03:41
daotoad1 Perhaps in the Hash docs, it would be good to say that Hashes, by nature, force their values into containers.
So to make a literal Key => Array, you need a slip in there to unpack the container? 03:43
timotimo i'm not entirely sure where exactly the slip gets unpacked 03:44
probably inside the constructor when taking something from the positional args and assigning it into the attribute
daotoad1 I ran into the issue trying to apply a Hash to object initialization, so maybe a note with a link to the Hash docs also? 03:45
timotimo yeah
daotoad1 Not sure I am up to actually writing the change myself, but I can definitely open an issue in the docs repo. 03:47
timotimo that's a good start :) 03:48
daotoad1 Thanks for the help!
I messed around with this for like an hour the other night, you really helped me find the solution. 03:49
timotimo no problem! 03:50
feel free to come to irc earlier next time something's not quite working, or post to stackoverflow, or reddit, or ... ):
:)
daotoad1 I was supposedly going to go to bed in 5 minutes and didn't want to start a long chat. :P 03:51
Instead I kept trying one more thing.
timotimo ha, i know that feeling
but irc is fine for quick chats, too
the kind of quick chat that i don't like on irc is when people come in, ask a question, and leave two minutes later 03:52
daotoad1 Understandable. 03:59
timotimo to be fair, it happens more often in more "end user support" focused channels 04:00
for example, i hang out in #krita, which is a drawing/painting program
timotimo anyway, better go to bed :D 04:01
me, too, actually
daotoad1 Thanks again, and good night
timotimo sleep well! 04:02
o/
Herby_ o/ 04:26
\o
squashable6 🍕 titsuki++ opened issue “C++ const breaks P6 struct”: github.com/rakudo/rakudo/issues/2583 05:12
🍕🍕🍕 First contribution by titsuki++! ♥
Elronnd is there a good way to say "if foo() != -1 { do something with the output of foo() }" ?
usercontent.irccloud-cdn.com/file/.../image.png
gah
disregardr
daotoad1 disregardr.io is my new startup. 05:39
hankache m: say "Hello #perl6"; 05:52
camelia Hello #perl6
Geth doc: 98a0e76886 | cfa++ | doc/Type/Any.pod6
Fix deepmap and duckmap links from Any.
06:09
synopsebot Link: doc.perl6.org/type/Any
squashable6 🍕 bugfood++ opened issue “duplicate stat() system calls on file tests”: github.com/rakudo/rakudo/issues/2584 06:12
🍕🍕🍕 First contribution by bugfood++! ♥
squashable6 🍕 niner++ wrote a comment on “C++ const breaks P6 struct”: github.com/rakudo/rakudo/issues/25...-451637021 08:14
🍕🍕🍕 First contribution by niner++! ♥
AlexDaniel squashable6: status 08:54
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈3 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/a77620ae5a4874b6e8...f37fd35b85
squashable6 🍕 robertlemmen++ wrote a comment on “"Cannot invoke this obje…”: github.com/rakudo/rakudo/issues/25...-451641923 09:47
Geth doc: b66a3c47f3 | (JJ Merelo)++ | doc/Language/operators.pod6
Fixes typo and reflows
10:17
synopsebot Link: doc.perl6.org/language/operators
squashable6 🍕 AlexDaniel++ wrote a comment on “"Cannot invoke this obje…”: github.com/rakudo/rakudo/issues/25...-451653011 12:51
MasterDuke AlexDaniel: I find I usually have to do —debug=3 to get good results 12:52
AlexDaniel MasterDuke: hmm where's that? I mean, how is it different from --moar-option='--debug=3' ? 12:53
MasterDuke Ah, it isn’t. I thought you just had —debug
squashable6 🍕 jnthn++ wrote a comment on “"Cannot invoke this obje…”: github.com/rakudo/rakudo/issues/25...-451657019 13:54
squashable6 🍕 dogbert17++ wrote a comment on “"Cannot invoke this obje…”: github.com/rakudo/rakudo/issues/25...-451663843 15:15
🍕🍕🍕 First contribution by dogbert17++! ♥
AlexDaniel squashable6: status 15:17
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈20 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/b90784acfe4857baa7...d2903359af
AlexDaniel hmmm there are 43 tickets github.com/rakudo/rakudo/issues?q=...testneeded
holyghost Good luck with the squasaton all ! I might join in later this year :-) 15:35
squashable6 🍕 Gnouc++ wrote a comment on “duplicate stat() system calls on file tests”: github.com/rakudo/rakudo/issues/25...-451666888 15:57
🍕🍕🍕 First contribution by Gnouc++! ♥
squashable6 🍕 zoffixznet++ wrote a comment on “duplicate stat() system calls on file tests”: github.com/rakudo/rakudo/issues/25...-451667814 16:10
🍕🍕🍕 First contribution by zoffixznet++! ♥ 16:11
cfa 👋 16:17
squashable6 🍕 robertlemmen++ wrote a comment on “"Cannot invoke this obje…”: github.com/rakudo/rakudo/issues/25...-451669951 16:38
squashable6 🍕 robertlemmen++ wrote a comment on “"Cannot invoke this obje…”: github.com/rakudo/rakudo/issues/25...-451672463 17:07
zachk how would I use a for loop to loop over an array nested in a hash? 18:00
my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]]
for %h{'y'} {.say}
that prints out the whole array not every element on a separate line
koto well, you have to either `@` it or convert to e.g. Seq, List or something like that. 18:02
m: my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]]; .say for @(%h<y>);
camelia 1
2
3
koto m: my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]]; .say for %h<y>.Seq;
camelia 1
2
3
koto m: my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]]; .say for |%h<y>; 18:03
camelia 1
2
3
koto ^ is the shortest, I think. zachk ^^
zachk whats | do?
koto well, very-very simplifying in "unpacks" a scalar that holds something that may be iterated and does number of things. For example, you can: 18:04
m: sub a(:$a, :$b) { say $a + $b }; my %h = a => 1, b => 3; a(|%h); 18:05
camelia 4
koto see docs.perl6.org/type/Signature#inde...parameters
koto in fact, you can do various cool things with Capture being first-class citizen, but that's another question. :) 18:08
tobs m: my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]]; .say for %h<y><>
camelia 1
2
3
tobs ^ or decontainerize it, zachk 18:09
(perl6advent.wordpress.com/2017/12/02/#decont) 18:10
zachk and my $line = prompt ">>> " locks up perl6.bat under a command window on windows 10 :-/ 18:27
in the interpreter 18:28
koto zachk, does it just hang ignoring your input? 18:47
zachk no responsive even to ctrl-c also not printing out any characters typed 18:48
koto hmm, that's very odd. what is rakudo version used? 18:49
also, ctrl-z or ctrl-d should kill the process in windows, I think, but that's another matter. 18:51
Altreus is this the right place to report that perl6maven is broken? 19:25
koto not sure. maybe github.com/szabgab/perl6maven.com is more appropriate place. 19:28
AlexDaniel squashable6: status 19:45
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈16 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/5056608bab2e639a6e...d7dc99b3c7
AlexDaniel come on folks, don't miss the opportunity to win plush camelia :)
1. Pick a ticket github.com/rakudo/rakudo/issues?q=...testneeded 19:46
2. submit a PR with tests
3. ???
you know :)
jonathon hi! random question which i can't find the right search phrase for... what determines what goes into the /usr/share/perl6/{site,vendor} directories? that is, what's the difference between site and vendor? 19:49
squashable6 🍕 Altai-man++ wrote a comment on “Match.^roles does not behave”: github.com/rakudo/rakudo/issues/24...-451685443 19:50
🍕🍕🍕 First contribution by Altai-man++! ♥
Kaiepi how do i debug this? hastebin.com/jomuyiheda.sql
ohh squashathon!
haven't participated in a while
what's the theme this time?
koto testneeded tickets of rakudo, I believe 19:51
koto tries to keep his head from exploding caused by a bunch of possibly recursive types possible representations 19:52
jonathon ah, i think it's covered here for perl5: www.debian.org/doc/packaging-manua...kages.html ; I think distro packages put stuff into vendor 19:53
AlexDaniel Kaiepi: yeah! Testneeded
squashable6 🍕 AlexDaniel++ closed issue “Miscompilation (optimization) of chain ops”: github.com/rakudo/rakudo/issues/1886 20:10
🍕 Kaiepi++ opened pull request “Add tests for R#2143”: github.com/perl6/roast/pull/508 20:17
🍕🍕🍕 First contribution by Kaiepi++! ♥
synopsebot R#2143 [open]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U
squashable6 🍕 AlexDaniel++ closed issue “SEGV with QAST tree in core Actions”: github.com/rakudo/rakudo/issues/1374 20:21
🍕 jonathanstowe++ wrote a comment on “Match.^roles does not behave”: github.com/rakudo/rakudo/issues/24...-451687535
🍕🍕🍕 First contribution by jonathanstowe++! ♥
AlexDaniel Kaiepi: hmm what's the difference between it and github.com/perl6/roast/pull/456 ? 20:23
Kaiepi: according to ugexe++: “Test against %?RESOURCES, not Distribution::Resources.” 20:25
squashable6 🍕 ugexe++ wrote a comment on “Add tests for R#2143”: github.com/perl6/roast/pull/508#is...-451687733
synopsebot R#2143 [open]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U
AlexDaniel Kaiepi: note that it is actually good, as we'll be able to close both the ticket and that PR 20:26
just figure out what exactly should be done with it
Kaiepi: maybe this test should be added to github.com/rakudo/rakudo/tree/master/t ?
Kaiepi sure 20:30
Kaiepi where would i add the test in rakudo? 20:31
squashable6 🍕 Kaiepi++ wrote a comment on “Add tests for R#2143”: github.com/perl6/roast/pull/508#is...-451688117
synopsebot R#2143 [open]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U
squashable6 🍕 Kaiepi++ closed pull request “Add tests for R#2143”: github.com/perl6/roast/pull/508 20:31
AlexDaniel Kaiepi: maybe t/02-rakudo/99-misc.t 20:36
squashable6 🍕 Kaiepi++ opened pull request “Add tests for R#2143”: github.com/rakudo/rakudo/pull/2585 20:37
synopsebot R#2143 [open]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U
Kaiepi oh i'll move it there then
AlexDaniel that works too
AlexDaniel Kaiepi: `use v6.d;` is probably not needed in the file 20:38
squashable6 🍕 Kaiepi++ synchronize pull request “Add tests for R#2143”: github.com/rakudo/rakudo/pull/2585
AlexDaniel Alright, good! 20:39
buggable: pizza Kaiepi
buggable Kaiepi, enjoy this slice of Hawaiian pizza, my friend! Yummy 🍕
Kaiepi thank 20:40
squashable6 🍕 lizmat++ closed issue “Can't .gist/.Str/.perl Distribution::Resource:U”: github.com/rakudo/rakudo/issues/2143
🍕 lizmat++ merged pull request “Add tests for R#2143”: github.com/rakudo/rakudo/pull/2585
synopsebot R#2143 [closed]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U
squashable6 🍕 lizmat++ wrote a comment on “Add tests for R#2143”: github.com/rakudo/rakudo/pull/2585...-451688714
squashable6 🍕 AlexDaniel++ wrote a comment on “Add tests for #2143, Distribution::Resource.^mro”: github.com/perl6/roast/pull/456#is...-451688759 20:41
🍕 AlexDaniel++ closed pull request “Add tests for #2143, Distribution::Resource.^mro”: github.com/perl6/roast/pull/456
AlexDaniel squashable6: status 20:42
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈15 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/b8f74e3ea386f0f65b...af4e0126a3
rindolf so many pizzaz 21:00
ah squashathon 21:01
perhaps i'll try my build script now
rindolf AlexDaniel: the script reported success 21:15
Kaiepi anyone on linux wanna run something for me real quick? 21:16
AlexDaniel rindolf: hmmm, which script is that? #outoftheloop
Kaiepi: depends, what is it?
Kaiepi short c program
hastebin.com/iqavefuwup.cpp
i need to know if the values are different so my code can be portable
AlexDaniel SO_OOBINLINE = a 21:17
SOL_SOCKET = 1
Kaiepi yep, they're different
thanks
rindolf AlexDaniel: github.com/shlomif/rakudo-git-master-install
AlexDaniel rindolf: btw there's also this github.com/skaji/p6env/ 21:18
Kaiepi m: say $*VM.osname 21:19
camelia linux
rindolf AlexDaniel: nice 21:21
Kaiepi Missing or wrong version of dependency 'gen/moar/CORE.d.setting' (from '/home/morfent/Documents/p6-Net-Telnet/lib/Net/Telnet/Chunk.pm6 (Net::Telnet::Chunk)') 21:26
?
timotimo rakudo not completely installed perhaps
Kaiepi ah
i'll try reinstalling
timotimo otherwise you can always nuke all precomps you can find ;) 21:27
Kaiepi reinstalling didn't work, neither did nuking precomp files 21:32
scovit Hello, it is possible to export symbols from a module that are imported from another module (and still be able to "use" both modules in the importing script)? 21:34
Trying to workaround this: Cannot import symbol Pointer from Robba::Buona, because it already exists in this lexical scope 21:35
Kaiepi oh i missed some precomp files
it works now
scovit so that the user does not need to 'use NativeCall' just to get Pointer
and I do not have to define tens of opaque types 21:36
scovit I guess that the answer is not.. what would be the idiomatic way to do that? 21:37
scovit class NativeAny is repr("CPointer") 21:39
and then s/Pointer/NativeAny/g ? 21:40
koto I may be wrong, but likely not. Transitive import doesn't work in turn to be able to use different versions of the same module at the same time. But you can write a `sub EXPORT`(you can look it up on docs site) where you can manually re-export needed symbols.
scovit I am doing it with sub EXPORT
koto oh
zachk does s///g not work in perl6?
scovit koto: the problem is that the used module would neet to check if the symbol is already thre 21:41
before exporting, to make it work
(and trust that it is the right symbol)
koto cannot help with this one, sorry. :( 21:42
scovit thanks for replying :) 21:43
it seems to me that it is like this by design and for some reason
timotimo zachk: it's supposed to :) 21:45
what issue are you facing? 21:46
zachk S/l/r/g given "hello" 21:47
Unsupported use of /g; in Perl 6 please use :g
AlexDaniel m: say S:g/l/r/ given "hello"
camelia herro
Altreus I've had to reinstall my OS and recovered my home dir, so I have the same $PATH and all my perl6 files, but I suspect I'm missing something at the system level because this happens gist.github.com/Altreus/c7fb5ab155...9604c85a96 21:50
perl6 itself seems to work 21:51
it seems to happen regardless of what I try to install 21:59
lizmat Altreus: perhaps some port blocking ? 22:01
Altreus I can access the URLs from the browser
lizmat weird
Altreus the warning on the first line seems weird
since @names doesn't appear on that line 22:02
or in that file
lizmat well, then you may have an older zef installed somewhere still ?
Altreus rerunning make install in my rakudo build dir 22:04
/home/altreus/perl6 -> /home/altreus/rakudo/rakudo-star-2018.04/install 22:05
so both perl6 and zef are pointing to the same perl6 dir
Is it entirely self-contained or is it expecting something to exist?
hmmm
scovit Is there a way to compose different pieces in a module? The way you do on Classes with Roles? 22:11
lizmat is not sure
scovit: not sure what you mean
scovit module B { our sub ciao { } }; module A is B { }, and then you can do A::ciao 22:12
Altreus This has a test failure in LWP::Simple:ver<1.0.1> because IO::Socket::SSL is not installed
scovit is it possible? 22:13
Altreus it's the same 2018.04 I've had since ages ago so I'm guessing it fetched it from cpan
scovit since right now I find myself using class methods (not instance methods) because I dont know how to achieve that 22:14
lizmat scovit: no, because "is" is about object inheritance
not about subs that happen to exist in a class
scovit this seems like a more complex task than what I am trying to achieve 22:15
what I mean is that I know how to do something complex (inheritance) but not something simple (putting toghether functions)
lizmat m: class A { our sub a() { 42 } }; class B { our constant &a = &A::a }; say B::a # closest thing 22:16
camelia 42
scovit m: module A { our sub a() { 42 } }; module B { our constant &a = &A::a }; say B::a 22:17
camelia 42
scovit Ok; not bad
:)
just a bit redundant but more explicit, might be better
Altreus hum reinstalling worked 22:19
wonder what changed
oh well :)
masak m: say 9999999999999999.0 - 9999999999999998.0 # geocar.sdf1.org/numbers.html 22:20
camelia 1
Kaiepi how do i look up an our sub in a package using a variable? 22:35
i tried Pkg::Name::{$foo} but that doesn't work
never mind, Pkg::Name::($foo) works 22:37
koto m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; Pkg::Name::{$a}; 22:38
camelia ( no output )
koto m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; Pkg::Name::{$a}(); 22:39
camelia Cannot find method 'Any' on object of type List
in block <unit> at <tmp> line 1
koto gives up 22:39
timotimo m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; Pkg::Name::($a)() 22:40
camelia 5===SORRY!5=== Error while compiling <tmp>
Combination of indirect name lookup and call not supported
at <tmp>:1
------> 3} }; my $a = 'ehehe'; Pkg::Name::($a)()7⏏5<EOL>
timotimo m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; (&Pkg::Name::($a))()
camelia 1
timotimo m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; (Pkg::Name::($a))()
camelia 5===SORRY!5=== Error while compiling <tmp>
Combination of indirect name lookup and call not supported
at <tmp>:1
------> 3 } }; my $a = 'ehehe'; (Pkg::Name::($a)7⏏5)()
expecting any of:
argument list
timotimo needs the & it seems like
koto Kaiepi, ^
timotimo++
Kaiepi yeah it does need the & 22:47
i left that out
SmokeMachine Is anyone planning to write a wrapper for this? gcc.gnu.org/onlinedocs/jit/index.html 23:03
lizmat looks interesting 23:07
SmokeMachine Yes... it does... 23:11
Altreus what's the right module for making paths absolute? 23:12
SmokeMachine I’m thinking of using it to compile binaries with this: github.com/FCO/bernalang 23:14
(Just studying, nothing serious)
Altreus File::Path::Resolve maybe 23:16
squashable6 🍕 bbkr++ opened issue “Hash.pick is very slow on big hashes.”: github.com/rakudo/rakudo/issues/2586 23:19
🍕🍕🍕 First contribution by bbkr++! ♥
koto m: my $a = Metamodel::EnumHOW.new_type(name => 'Foo', base_type => Int); $a.^add_enum_value((One => 1)); $a.^add_role(Enumeration); $a.^add_role(NumericEnumeration); $a.^compose; say $a::One; 23:32
camelia (Any) 23:33
koto it is based on stackoverflow.com/questions/470334...-in-perl-6
but the answer doesn't explain a way to use an enum value...
m: my $a = Metamodel::EnumHOW.new_type(name => 'Foo', base_type => Int); $a.^add_enum_value((One => 1)); $a.^add_role(Enumeration); $a.^add_role(NumericEnumeration); $a.^compose; $a.^enum_values.say; 23:35
camelia {One => 1}
buggable New CPAN upload: Net-BGP-0.0.3.tar.gz by JMASLAK modules.perl6.org/dist/Net::BGP:cpan:JMASLAK
scovit Cannot invoke this object (REPR: Null; VMNull) 23:37
what to do?
I'm probably doing something silly.. 23:38
koto scovit, the best thing will be probably to try to golf your code into a small reproducible chunk and open an issue at github.com/rakudo/rakudo/issues 23:40
scovit sure koto 23:42
koto at least I see a bunch of tickets with this error message in various states. :)
scovit, thanks for reporting!
lucs Altreus: Maybe IO::Path::absolute can do what you need? 23:50
Altreus ah yes! 23:59
But I've gone with File::Path::Resolve because it'll canonicalise the path roo
too