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
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:
> 92bd7e4f54a9^,92bd7e4f54a9,9658dd98c9d
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:
> 92bd7e4f54a9^,92bd7e4f54a9,9658dd98c9d
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 ∞’); # ← this
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 ∞’); # ← this
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; # <--
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 unfudg
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 unfudg
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 $.f
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 $.f
# 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:
```
#!/usr/b
# 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;
13 matches
Mail list logo