Re: Observations from a C++/Python developer that never used Perl5

2016-09-08 Thread Kamil Kułaga
e is not compiled in static language sense. -- Regards Kamil Kułaga

Re: Workaround for Perl 5's __DATA__

2016-01-18 Thread Kamil Kułaga
begin DATA > blah > blah2 > =end DATA > > Then: > > for $=DATA.lines -> $line { > # process a line > } > > but I get this message: > > Pod variable @=DATA not yet implemented. Sorry. > > Is there any workaround for this other than putting the data in

Adding doc on the fly during --doc

2015-11-07 Thread Kamil Kułaga
Hi, I know design allows to alter pod building during DOC INIT and DOC BEGIN phases I'm curious is it possible display undocumented things as it had doc? I would find it useful to display all public stuff from class as part of doc. -- Regards Kamil Kułaga

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-12 Thread Kamil Kułaga
on converting Perl 5 to Perl 6 code at the Perl Monastery. I am comfortable with the example code I use there (which is not currently intended to showcase new features), but I am getting several comments on why one should even bother with Perl 6? -- Pozdrawiam Kamil Kułaga

Re: UDP suport in rakudo

2015-06-18 Thread Kamil Kułaga
I will observe this branch then. I wanted to write an app listening to snmp and I'don't know what will be required yet. Thanks for info :-) On Thu, Jun 18, 2015 at 2:39 PM, Timo Paulssen t...@wakelift.de wrote: On 06/18/2015 09:47 AM, Kamil Kułaga wrote: Hi, Is it possible to listen UDP port

Re: Favorite (Xe|E)macs mode script for Perl 6?

2015-04-05 Thread Kamil Kułaga
. Best, ~Tom -- Pozdrawiam Kamil Kułaga

Orphaned module Form

2014-09-08 Thread Kamil Kułaga
question is: Shall https://github.com/perl6 community adopt it or maybe someone should fork it and change link in https://github.com/perl6/ecosystem/blob/master/META.list? -- Pozdrawiam Kamil Kułaga

Re: Diffrence between is and does in scope of overriding multi methods

2014-06-27 Thread Kamil Kułaga
, 2014 at 3:25 PM, Timo Paulssen t...@wakelift.de wrote: On 27/06/14 10:07, Kamil Kułaga wrote: Hi, I would like to ask for help in understanding difference between this code: use v6; role X { multi method xyz(Any $a) {say Class X} } class Y does X

Re: Rewrite using map? Trasformation array into hash of hash

2014-06-14 Thread Kamil Kułaga
Dear Timo. So .categorize and .classify wil always end with list on leaves of produced tree? Ok I can live with that :) On Sat, Jun 14, 2014 at 12:30 PM, t...@wakelift.de wrote: Dear Kamil, On 06/13/2014 10:24 PM, Kamil Kułaga wrote: my %h = categorize({map {[.a , .b]}, $_},@array); I

Code execution during compilation

2014-06-14 Thread Kamil Kułaga
or subject to change? -- Pozdrawiam Kamil Kułaga

Re: Code execution during compilation

2014-06-14 Thread Kamil Kułaga
Of course ment perl6 --target=pir --output=o.pir funnyrole.pl but with same effect On Sun, Jun 15, 2014 at 2:31 AM, Kamil Kułaga teodoz...@gmail.com wrote: Hi, I got amazed little bit when this code: class A { method wow{say I'm alive} } role Xx{ my $th

Rewrite using map? Trasformation array into hash of hash

2014-06-13 Thread Kamil Kułaga
%hash; for @array - $elem { %hash{$elem.a}{$elem.b} =$elem; } say %hash.perl; Can it? -- Pozdrawiam Kamil Kułaga

Re: Rewrite using map? Trasformation array into hash of hash

2014-06-13 Thread Kamil Kułaga
({ .a = .b = $_ }) OUTPUT«a = 11 = A.new(a = a, b = 11) a = 22 = A.new(a = a, b = 22) v = 33 = A.new(a = v, b = 33) w = 44 = A.new(a = w, b = 44) v = 55 = A.new(a = v, b = 55)␤» Am 13.06.2014 12:36, schrieb Kamil Kułaga: Hi, I was wondering whether following code can be rewritten using map/grep

Re: Rewrite using map? Trasformation array into hash of hash

2014-06-13 Thread Kamil Kułaga
$var = .a; $var = %(@array.grep({.a eq $var}).map({.b = $_})) }); say %ha.perl; my %hash; for @array - $elem { %hash{$elem.a}{$elem.b} =$elem; } say Reference\n ~ %hasha.perl; On Fri, Jun 13, 2014 at 4:49 PM, Kamil Kułaga teodoz...@gmail.com wrote: Hi Tobias, Almost

Re: Is passing excess parameters while creating object legal?

2014-05-28 Thread Kamil Kułaga
in some other cases may be a great idea. On Tue, May 27, 2014 at 9:04 PM, Tadeusz Sośnierz tadeusz.sosni...@onet.pl wrote: On 05/25/2014 09:50 AM, Kamil Kułaga wrote: Hi, My question is about passing parameters to .new method that do not correspond to any field in class. This example; use v6

Is passing excess parameters while creating object legal?

2014-05-25 Thread Kamil Kułaga
parent class.) -- Pozdrawiam Kamil Kułaga

Does perl have ensue override?

2014-05-15 Thread Kamil Kułaga
cuts out deprecated method and there is no reason to implement them any longer. -- Pozdrawiam Kamil Kułaga

Unusual use of x string repetition operator

2014-02-10 Thread Kamil Kułaga
This is perl6 version 2014.01 built on parrot 5.9.0 revision 0 -- Regards Kamil Kułaga

Re: Unusual use of x string repetition operator

2014-02-10 Thread Kamil Kułaga
Hi, Array stringification to 1 2 mislead me that something more complicated comes around. Thanks for fast reply On Mon, Feb 10, 2014 at 2:29 PM, Tobias Leich em...@froggs.de wrote: Hi Am 10.02.2014 14:19, schrieb Kamil Kułaga: Hi, I've played wit x and xx repetition operators and found

Re: Unusual use of x string repetition operator

2014-02-10 Thread Kamil Kułaga
|12|12|12|12|12|12␤» Am 10.02.2014 14:42, schrieb Kamil Kułaga: Hi, Array stringification to 1 2 mislead me that something more complicated comes around. Thanks for fast reply On Mon, Feb 10, 2014 at 2:29 PM, Tobias Leich em...@froggs.de wrote: Hi Am 10.02.2014 14:19, schrieb Kamil

Unusual use of x string repetition operator

2014-02-10 Thread Kamil Kułaga
This is perl6 version 2014.01 built on parrot 5.9.0 revision 0 -- Regards Kamil Kułaga