# New Ticket Created by David Lowe
# Please include the string: [perl #132225]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=132225 >
This short program crashes reliably (with a segmentation fault) on my
system:
```
# New Ticket Created by David Lowe
# Please include the string: [perl #132226]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=132226 >
This program dies after a short but inconsistent run:
```
#!/usr/bin/env perl6
use v6.c;
On Thu, Oct 5, 2017 at 11:44 AM, Andy Bach wrote:
>
>> is
><<>>
>> synonymous with
>qw[]
> ?
`<<>>` is the same as `qqww<<>>`
Which is short for `Q :qq :ww <<>>`
the `:qq` is short for `:double`, that is it turns on double quote behaviour
`:double` is short for
Perl 6 (Timo),
In terms of new() uses… I’ve seen a clever use of new() that goes beyond
turning ‘positionals’ into ‘named’ in
https://github.com/retupmoca/P6-Net-SMTP/blob/master/lib/Net/SMTP.pm6. It
wraps methods for debugging. Pretty great, imo.
In terms of this thread’s subject… I am
Thanks for that. As a worka-around Rakudo seems to do a better job, if I
give it a helping hand viz a TWEAK method:
use NativeCall;
class Point is repr('CStruct') {
has uint8 $.x;
has uint8 $.y;
}
class MyStruct2 is repr('CStruct') {
HAS Point $.point; # <-- embedded
has int8
Thanks for that. As a worka-around Rakudo seems to do a better job, if I
give it a helping hand viz a TWEAK method:
use NativeCall;
class Point is repr('CStruct') {
has uint8 $.x;
has uint8 $.y;
}
class MyStruct2 is repr('CStruct') {
HAS Point $.point; # <-- embedded
has int8
Timo,
Oops. You're right. (I was unconditionally sending an argument in my test
that zeroed it out the attribute that I was watching -- doh!) Now I can
confirm that TWEAK is the logical place to further initialize attributes.
I now see the light!
Thanks,
Mark
-Original Message-
On Wed, 09 Jul 2014 07:10:31 -0700, coke wrote:
> S29 says that EVAL should work on Buf in addition to Str; There is one
> test in S29-context/eval.t that tests for this but is skipped.
>
> Could probably use more tests.
>
Everything is now implemented[^1] with more tests added[^2], and I
On Wed, 09 Jul 2014 07:10:31 -0700, coke wrote:
> S29 says that EVAL should work on Buf in addition to Str; There is one
> test in S29-context/eval.t that tests for this but is skipped.
>
> Could probably use more tests.
>
Everything is now implemented[^1] with more tests added[^2], and I
The main difference between BUILD and TWEAK is that BUILD will replace
all default and requiredness handling, while TWEAK keeps it intact.
TWEAK gets run after these aspects had their turn, so if you have an "is
required" attribute that doesn't get a value passed, the BUILDALL
process will throw
> is
<<>>
> synonymous with
qw[]
?
IIUC - close, it like qqw:
https://docs.perl6.org/language/quoting#index-entry-quote_qqww-quote_
<<_>>-quote_«_»-Word_quoting_with_interpolation_and_quote_protection:_qqww
It's actually synonymous w/ qqww but depending upon your use of quotes w/i
the list
On Wed, 04 Oct 2017 23:19:19 -0700, david.warring wrote:
> From
> https://docs.perl6.org/language/nativecall#Embedding_CStructs_and_CUnions
>
> class Point is repr('CStruct') {
> has uint16 $.x;
> has uint16 $.y;
> }
>
> class MyStruct2 is repr('CStruct') {
> HAS Point $.point; #
MIME Is The Sacha Guitry Picture.
On Oct 4, 2017 8:23 PM, "Todd Chester" wrote:
> On 10/04/2017 08:20 PM, Todd Chester wrote:
>
>> So in this context "{$x}" means insert (interpolate) a
>> variable into the list? I was thinking it meant to
>> insert a variable into a
On Tue, 20 Dec 2016 05:07:57 -0800, jn...@jnthn.net wrote:
> On Sun, 18 Dec 2016 06:24:38 -0800, alex.jakime...@gmail.com wrote:
> > This is probably best demonstrated by a code snippet.
> >
> > Code:
> >
> > my $out = Channel.new;
> > #my $proc = Proc::Async.new(‘perl6’, ‘-e’, ‘sleep ∞’); # ←
On Tue, 20 Dec 2016 05:07:57 -0800, jn...@jnthn.net wrote:
> On Sun, 18 Dec 2016 06:24:38 -0800, alex.jakime...@gmail.com wrote:
> > This is probably best demonstrated by a code snippet.
> >
> > Code:
> >
> > my $out = Channel.new;
> > #my $proc = Proc::Async.new(‘perl6’, ‘-e’, ‘sleep ∞’); # ←
On Wed, 16 Aug 2017 14:24:48 -0700, scoli...@gmail.com wrote:
> Similar to https://rt.perl.org/m/ticket/show?id=131914 it was noticed
> that there is a huge increase of memory usage after running a simple
> echo command.
> Result are in Kbytes.
>
> commit:
>
On Wed, 16 Aug 2017 14:24:48 -0700, scoli...@gmail.com wrote:
> Similar to https://rt.perl.org/m/ticket/show?id=131914 it was noticed
> that there is a huge increase of memory usage after running a simple
> echo command.
> Result are in Kbytes.
>
> commit:
>
On Mon, 02 Oct 2017 18:09:45 -0700, alex.jakime...@gmail.com wrote:
> Right, because it's a Rat.
>
> sub foo(num64 $scale = 1.0) {}; say foo # This type cannot unbox to a
> native
> number: P6opaque, Rat
> sub foo(num64 $scale = 1.0.Num) {}; say foo # Nil
>
No need for .Num, just write it as 1e0
On Mon, 02 Oct 2017 18:09:45 -0700, alex.jakime...@gmail.com wrote:
> Right, because it's a Rat.
>
> sub foo(num64 $scale = 1.0) {}; say foo # This type cannot unbox to a
> native
> number: P6opaque, Rat
> sub foo(num64 $scale = 1.0.Num) {}; say foo # Nil
>
No need for .Num, just write it as 1e0
# New Ticket Created by David Warring
# Please include the string: [perl #13]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=13 >
From
https://docs.perl6.org/language/nativecall#Embedding_CStructs_and_CUnions
class
This was fixed in
https://github.com/rakudo/rakudo/commit/502b886e8d14dbd51b5dc201309f9f8bb0a4c3e0
Not sure why it's still not closed. Closing.
On 2015-12-12 20:45:06, lloyd.fo...@gmail.com wrote:
> test:
>
https://github.com/perl6/roast/commit/c205f71781a29a456349a791fdf912d6955fe50f
>
> On
So there are three issues:
1) ✓ no line number. RESOLVED in
https://github.com/rakudo/rakudo/commit/25e9fd76e85fabda20e263b6f87e27b0673f26e2
2) ✗ it could mention '* > 5'.
3) ✓ it could mention the 2. RESOLVED in
https://github.com/rakudo/rakudo/commit/f1cd8e313abff2f66b9989fe60870a6e11cf7588
On
22 matches
Mail list logo