[perl6/specs] b413e5: replaced deprecated underscored sub names by dashe...
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: b413e555d2ad4f1fd7a2da8454dcb00cf402fdda https://github.com/perl6/specs/commit/b413e555d2ad4f1fd7a2da8454dcb00cf402fdda Author: Stéphane Payrard cognomi...@gmail.com Date: 2015-06-01 (Mon, 01 Jun 2015) Changed paths: M S24-testing.pod Log Message: --- replaced deprecated underscored sub names by dashed ones
[perl #125302] [BUG] Segfault in Regex construction
# New Ticket Created by Jonathan Stowe # Please include the string: [perl #125302] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/Ticket/Display.html?id=125302 I had no idea whether it was possible to construct a regex object by other means than rx// so I tried: say Regex.new(pattern = hshss) This results in (gdb bt): Program received signal SIGSEGV, Segmentation fault. 0x77bb8541 in MVM_string_utf8_encode_substr () from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so (gdb) bt #0 0x77bb8541 in MVM_string_utf8_encode_substr () from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so #1 0x77b64471 in MVM_io_syncstream_write_str () from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so #2 0x77b62932 in MVM_io_write_string () from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so #3 0x77b2fb49 in MVM_interp_run () from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so #4 0x77bd87ab in MVM_vm_run_file () from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so #5 0x0040101f in main () This with: This is perl6 version 2015.05-76-g94eed8f built on MoarVM version 2015.05
[perl6/specs] 86bb33: index page: correct some details about the documen...
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 86bb33ff986eb42cf61796c5c536b9820899a12d https://github.com/perl6/specs/commit/86bb33ff986eb42cf61796c5c536b9820899a12d Author: Moritz Lenz mor...@faui2k3.org Date: 2015-06-01 (Mon, 01 Jun 2015) Changed paths: M html/index.html Log Message: --- index page: correct some details about the document generation
[perl6/specs] 2cd06f: S99: added P6W, spotted in #perl6. Fixed a typo
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 2cd06fd900f0a24b684172a5d4ec1557b9598c47 https://github.com/perl6/specs/commit/2cd06fd900f0a24b684172a5d4ec1557b9598c47 Author: Stéphane Payrard cognomi...@gmail.com Date: 2015-06-02 (Tue, 02 Jun 2015) Changed paths: M S99-glossary.pod Log Message: --- S99: added P6W, spotted in #perl6. Fixed a typo
Re: Possible bug in NativeCall CStruct
Hi, when you install latest MoarVM, you can do this: $ perl6 -e 'use NativeCall; class Foo is reprCStruct { has str $.bar is rw }; my $foo = Foo.new(bar = bar); say $foo; $foo.bar = baz; say $foo' Foo.new(bar = bar) Foo.new(bar = baz) Note the lowercase str type. The normal Str type can be set by binding to the $!bar attribute from within the class, but not from the outside via arguments to .new sadly. Cheers, FROGGS Am 02.06.2015 um 19:38 schrieb Douglas E. Miles: Hi all! I just started learning Perl 6 about 5 days ago, so I may not know what I'm talking about, but I may have found a bug. I posted to #perl6 with my original code, and raydiak and timotimo were nice enough to golf it down for me: Str in CStruct blows up: $ perl6 use NativeCall; class Foo is repr('CStruct') { has Str $.str }; my $foo = Foo.new(str = 'bar'); Cannot modify an immutable Str in block unit at unknown file:1 in any unit-outer at unknown file:1 int32 in CStruct works fine: $ perl6 use NativeCall; class Foo is repr('CStruct') { has int32 $.i }; my $foo = Foo.new(i = 42); Foo.new(i = 42) say $foo.i 42 Please let me know if I'm doing something wrong, or if this is a legit bug. Thanks!
Re: Possible bug in NativeCall CStruct
Thanks FROGGS! I got that to work after updating MoarVM. On 06/02/2015 01:21 PM, Tobias Leich wrote: Hi, when you install latest MoarVM, you can do this: $ perl6 -e 'use NativeCall; class Foo is reprCStruct { has str $.bar is rw }; my $foo = Foo.new(bar = bar); say $foo; $foo.bar = baz; say $foo' Foo.new(bar = bar) Foo.new(bar = baz) Note the lowercase str type. The normal Str type can be set by binding to the $!bar attribute from within the class, but not from the outside via arguments to .new sadly. Cheers, FROGGS Am 02.06.2015 um 19:38 schrieb Douglas E. Miles: Hi all! I just started learning Perl 6 about 5 days ago, so I may not know what I'm talking about, but I may have found a bug. I posted to #perl6 with my original code, and raydiak and timotimo were nice enough to golf it down for me: Str in CStruct blows up: $ perl6 use NativeCall; class Foo is repr('CStruct') { has Str $.str }; my $foo = Foo.new(str = 'bar'); Cannot modify an immutable Str in block unit at unknown file:1 in any unit-outer at unknown file:1 int32 in CStruct works fine: $ perl6 use NativeCall; class Foo is repr('CStruct') { has int32 $.i }; my $foo = Foo.new(i = 42); Foo.new(i = 42) say $foo.i 42 Please let me know if I'm doing something wrong, or if this is a legit bug. Thanks!
[perl #125312] 'start' is a sub in Rakudo; design docs suggest it should be a statement prefix
# New Ticket Created by Sam S. # Please include the string: [perl #125312] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/Ticket/Display.html?id=125312 According to http://design.perl6.org/S04.html#line_1380 'start' should probably be a statement prefix. However, in Rakudo it is currently a subroutine: ➜ start 41 + 2 Type check failed in binding code; expected 'Callable' but got 'Int' in block unit at unknown file:1 ➜ say start sub start (code, :catch(catch)) { #`(Sub|49183056) ... } Discussion: smls maybe I'm misinterpreting the design docs? smls it's not super explicit about it. masak They parse the same as phasers and `try` already working that way both seem to point to your conclusion. masak also, it makes sense to me that `start` would take a blorst.
Possible bug in NativeCall CStruct
Hi all! I just started learning Perl 6 about 5 days ago, so I may not know what I'm talking about, but I may have found a bug. I posted to #perl6 with my original code, and raydiak and timotimo were nice enough to golf it down for me: Str in CStruct blows up: $ perl6 use NativeCall; class Foo is repr('CStruct') { has Str $.str }; my $foo = Foo.new(str = 'bar'); Cannot modify an immutable Str in block unit at unknown file:1 in any unit-outer at unknown file:1 int32 in CStruct works fine: $ perl6 use NativeCall; class Foo is repr('CStruct') { has int32 $.i }; my $foo = Foo.new(i = 42); Foo.new(i = 42) say $foo.i 42 Please let me know if I'm doing something wrong, or if this is a legit bug. Thanks!