The pull request was merged. I'm closing this ticket as 'resolved'.
I hope I never run across code written by someone who thinks this is a
good idea.
On 4/11/16, Theo van den Heuvel wrote:
> Thanks Larry for the answer and the great language.
>
> It is quite ok for me to start alphabetically. I use the funny char to
> indicate a particular
Thanks Larry for the answer and the great language.
It is quite ok for me to start alphabetically. I use the funny char to
indicate a particular aspect shared by a bunch of subs operators and
methods.
So I tried:
method term: { "Mel G.".say }
However, that gives me:
Bogus postfix
I thought about adding a test for this ticket, but now wonder what the expected
output for the evaluation is.
As Moritz showed a current Rakudo complains about 'Useless use of "+" in
expression "$a + $b" ...'.
In masak's original example the warning was about "Useless use of variable $a
...".
You have to write it like this:
class Foo {
method ::('❤') { "mem heart".say }
}
my Foo $foo .= new;
$foo.'❤'();
Other than that, only names beginning alphabetically are allowed.
You could work around this on the caller end with a postfix:<❤>, but
that would be an
Hi Marcel,
With regard to checking for endianess. I don't think there's anything built
in NativeCall that directly determines this, but hopefuly the following
should do it, without resorting to a C compiler.
use NativeCall;
sub little-endian returns Bool {
my $i = CArray[uint32].new:
Hi
Thanks for your answer. I was thinking in perl6, I should have been more
explicit. At the moment I am converting Num to a float representation in my
BSON module and was wondering if there where easier ways and maybe faster too.
Regards,
Marcel
--- Forwarded message ---
From: Marcel
I opened a small PR for Rakudo (https://github.com/rakudo/rakudo/pull/740) to
remove the relevant section from README.md and to add a warning that
docs/compiler_overview.pod is not up to date.
All blockers have been dealt with and the release was done in time. I'm closing
this ticket was 'resolved'.
Both failing tests where removed with commit
https://github.com/perl6/roast/commit/c73db6b5c1 (6.c-errata branch).
I'm closing this ticket as 'resolved'.
The test was relaxed with commit
https://github.com/perl6/roast/commit/a069b922c9 (6.c-errata branch).
I'm closing this ticket as 'resolved'.
The faulty test was fixed in the 6.c-errata branch with commit 6af3c5b5de.
I'm closing this ticket as 'resolved'.
On 04/11/2016 03:04 PM, Nicholas Clark wrote:
On Mon, Apr 11, 2016 at 04:39:59AM -0700, H. Merijn Brand wrote:
In a one-liner:
$ p6 -e'my$b=Buf.new(61,^2048 .map({256.rand.Int}));my Str
$u=$b.decode("utf8-c8");$u.=subst(/("a"|"b")/,{"c$0"},:g);'
Segmentation fault
or (same code)
With
Hi,
While the perl language already offers so much I have a question not found
in perl
Is there anything like the C union to do an easy mapping from some native
variable to a buf of the same number of bytes? This is a nice helper for
pack/unpack for native values. It is important to know
The author of this ticket reported a golfed version of this bug as
https://rt.perl.org/Ticket/Display.html?id=127682
As requested in that new ticket, I'm closing (rejecting) this ticket.
This fails now with X::Method::NotFound and the error message has some more
informations:
$ perl6-m -e '*(42)'
No such method 'CALL-ME' for invocant of type 'Whatever'
in block at -e line 1
I added a simple test to S02-types/whatever.t with commit
On Mon, Apr 11, 2016 at 04:39:59AM -0700, H. Merijn Brand wrote:
> In a one-liner:
>
> $ p6 -e'my$b=Buf.new(61,^2048 .map({256.rand.Int}));my Str
> $u=$b.decode("utf8-c8");$u.=subst(/("a"|"b")/,{"c$0"},:g);'
> Segmentation fault
>
> or (same code)
With timotimo's commit from this afternoon:
I was able to reproduce the problem with rakudo 2016.01.1 on Linux.
It seems to be fixed now (maybe with rakudo commit 241e5e5847):
$ ls -lh 126372.data
-rw-r--r-- 2 christian christian 48M Apr 11 14:07 126372.data
$ time ./perl6-m -e 'my $content = slurp "126372.data", :bin; say
# New Ticket Created by H. Merijn Brand
# Please include the string: [perl #127878]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=127878 >
The code I used to reproduce:
--8<---
#!perl6
use v6;
my Buf $b = Buf.new(61,
The implementation has changed with rakudo commit f220a5ed so that Int() is
called on $k (and $n).
The examples work consistently now, but it looks like there are no tests for
this in roast:
$ perl6-m -e 'say combinations 2, 0.5'
(())
$ perl6-m -e 'say combinations 2, 1.5'
((0) (1))
$
This works consistently now:
$ perl6-m -e '.say for combinations -999, 2'
()
$ perl6-m -e '.say for combinations -99, 2'
()
Calling combinations with a negative $k gives an empty list:
$ perl6-m -e 'say combinations 4, -2'
()
I added tests for this behaviour to
I added the above examples as tests to S02-types/array-shapes.t with commit
https://github.com/perl6/roast/commit/a2617480f4
I'm closing this ticket as 'resolved'.
I addes a test to S32-list/permutations.t with commit
https://github.com/perl6/roast/commit/30db58671d
I'm closing this ticket as 'resolved'.
23 matches
Mail list logo