Re: The equivalent of Moose's "around"

2017-11-16 Thread Elizabeth Mattijsen
Oops, > On 17 Nov 2017, at 01:24, Elizabeth Mattijsen wrote: > sub trait_mod:(\attribute, :&proxy!) is export { sub trait_mod:(Attribute:D \attribute, :&proxy!) is export { so that the trait can only be used on Attribute objects. Liz

Re: The equivalent of Moose's "around"

2017-11-16 Thread Elizabeth Mattijsen
You could probably do this nicer as an Addtribute trait: Creator.pm == sub trait_mod:(\attribute, :&proxy!) is export { attribute.package.^add_method(attribute.name,my method () { proxy($_) }) } A.pm use Creator; class A { has $!a is proxy( &func ); has $!b is proxy( &fu

[perl #132441] [SEVERE] Windows REPL cannot handle «, » characters

2017-11-16 Thread Zoffix Znet via RT
On Mon, 13 Nov 2017 20:29:52 -0800, d...@zwell.net wrote: > With Linenoise installed, I get this error: > > Malformed UTF-8 at line 1 col 6 That looks like it might be working correctly, except cmd.exe wasn't told to UTF-8 code page (need to run `chcp 65001`). > But in the REPL, I tried to run

[perl #132441] [SEVERE] Windows REPL cannot handle «, » characters

2017-11-16 Thread Zoffix Znet via RT
On Mon, 13 Nov 2017 20:29:52 -0800, d...@zwell.net wrote: > With Linenoise installed, I get this error: > > Malformed UTF-8 at line 1 col 6 That looks like it might be working correctly, except cmd.exe wasn't told to UTF-8 code page (need to run `chcp 65001`). > But in the REPL, I tried to run

[perl #132452] Unicode: Windows shells print garbage instead of "「」"

2017-11-16 Thread Zoffix Znet via RT
On Thu, 16 Nov 2017 02:28:11 -0800, d...@zwell.net wrote: > The Windows command shells I've used (CMD and Cmder) fail to print the "「」" > that are part of stringified matches. This is a significant issue, since > new users use regular expressions when working through tutorials. > > Since pasting t

[perl #132452] Unicode: Windows shells print garbage instead of "「」"

2017-11-16 Thread Zoffix Znet via RT
On Thu, 16 Nov 2017 02:28:11 -0800, d...@zwell.net wrote: > The Windows command shells I've used (CMD and Cmder) fail to print the "「」" > that are part of stringified matches. This is a significant issue, since > new users use regular expressions when working through tutorials. > > Since pasting t

[perl #132452] Unicode: Windows shells print garbage instead of "「」"

2017-11-16 Thread via RT
# New Ticket Created by Dan Zwell # Please include the string: [perl #132452] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132452 > The Windows command shells I've used (CMD and Cmder) fail to print the "「」" that are part of

Re: SDL 2 code to put into a module

2017-11-16 Thread The Holy Ghost
Hi, I've added my start of PaganVisions game in perl 6 using SDL2:Raw, it's at http://github.com/theholyghost/holly6src It just opens a window with keybindings, I have some SDL2 graphics in the works. Enjoy! Holly

Re: The equivalent of Moose's "around"

2017-11-16 Thread Fernando Santagata
Maybe someone might find this useful. In the end I concocted this kind of code. The price of simplicity at the base program level is paid at the class level, with a specific BUILD submethod, and with an even greater complexity at role level, where the accessors are created dynamically with some me