Re: Offering my help with the Perl6 Text::Markdown module

2017-09-18 Thread JJ Merelo
Thanks! 2017-09-18 4:12 GMT+02:00 <and...@egeler.us>: > I’ve added you to the repository – sorry about the delay, and thanks for > the help with the module! > > > > *From: *JJ Merelo <jjmer...@gmail.com> > *Sent: *Sunday, September 17, 2017 4:51 AM > *To: *

Offering my help with the Perl6 Text::Markdown module

2017-09-17 Thread JJ Merelo
Hi, Andrew: This is JJ Merelo, JJ in GitHub. I have been using your Text::Markdown module quite extensively, but I've had to patch a few things; on 30th July I also opened a pull request which I have increased lately with Altai-man's other pull request. Since I think that your module is great

Re: Need help converting from Perl 5

2018-05-14 Thread JJ Merelo
t;> > I am trying to exclude things that look like: > >> > > >> > $Line2 = bonecho > >> > $Line2 = custom-updates > >> > $Line2 = deerpark > >> > $Line2 = devpreview > >> > $Line2 = gran

Re: Need help converting from Perl 5

2018-05-15 Thread JJ Merelo
As far as I understand it, HTTP::UserAgent is preferred over LWP::Simple. It does work to spec now, so I'm using it... El mar., 15 may. 2018 a las 8:44, ToddAndMargo (<toddandma...@zoho.com>) escribió: > On 05/14/2018 02:42 AM, JJ Merelo wrote: > > Maybe this will work &

Re: number of letters question

2018-05-15 Thread JJ Merelo
IN Perl 6, it's a bit more complicated. Do you want to count graphemes or codepoints? El mar., 15 may. 2018 a las 8:32, ToddAndMargo () escribió: > Hi All, > > Do we have one of those sweet functions that will > allow us to look at a string and give us back the > count of

Re: number of letters question

2018-05-15 Thread JJ Merelo
t; >> Do we have one of those sweet functions that will > > >> allow us to look at a string and give us back the > > >> count of how many "letters" and/or "numbers" are > > >> in a string? > > >&g

Re: number of letters question

2018-05-15 Thread JJ Merelo
> >> > >> Do we have one of those sweet functions that will > >> allow us to look at a string and give us back the > >> count of how many "letters" and/or "numbers" are > >> in a string? > >> > >> And

Re: Range of Dates

2018-05-06 Thread JJ Merelo
Can you all take this interesting question to StackOverflow too? Thanks! El sáb., 5 may. 2018 a las 21:57, Sean McAfee () escribió: > On Wed, May 2, 2018 at 3:44 AM, Elizabeth Mattijsen > wrote: > >> Getting back to maybe your original question: if you want

Re: number of letters question

2018-05-15 Thread JJ Merelo
El mar., 15 may. 2018 a las 10:17, ToddAndMargo (<toddandma...@zoho.com>) escribió: > On 05/15/2018 12:57 AM, JJ Merelo wrote: > > Well, > > say + "abcrd-12.3.4".comb.grep: // > > will give you that, but > > say + "abcñé-12.3.4".comb.grep:

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
(also: ask questions in StackOverflow whenever possible :-) ) El mar., 12 jun. 2018 a las 9:09, JJ Merelo () escribió: > Use binding: > > my @x= <1 2 3>; my @y := @x but Iterable; say @y.^name; # OUTPUT: > «Array+{Iterable}␤» > > El mar., 12 jun. 2018 a las 9:06, Jose

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
Use binding: my @x= <1 2 3>; my @y := @x but Iterable; say @y.^name; # OUTPUT: «Array+{Iterable}␤» El mar., 12 jun. 2018 a las 9:06, Joseph Brenner () escribió: > I thought this would work to make a copy of @x but with the role > "LookInside" attached to it: > >my @y = @x but LookInside; >

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
Hi, El mar., 12 jun. 2018 a las 20:35, Brad Gilbert () escribió: > On Tue, Jun 12, 2018 at 12:55 PM, Joseph Brenner > wrote: > > Thanks, both your suggestion and JJ Merelo's work, but I think I like > > yours for readability: > > > > # # using binding, suggest

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
This is what the documentation says: https://docs.perl6.org/syntax/WHAT You can override it, but we'll pay no attention anyway, basically. So you can't achieve it otherwise, I guess. El mar., 12 jun. 2018 a las 21:14, JJ Merelo () escribió: > > > El mar., 12 jun. 2018 a las 21:11

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
El mar., 12 jun. 2018 a las 21:01, Brandon Allbery () escribió: > .WHAT is a "macro"/shorthand, which is why it's uppercase. There's a > metamodel (the real meaning of the ^) version of it as well. > Right. From here: https://docs.perl6.org/language/operators#postfix_.^ ^method calls method

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
Ah, OK, you didn't mean override WHAT itself, but get an ersatz what in some other way. Got it. Thanks. El mar., 12 jun. 2018 a las 21:32, Brad Gilbert () escribió: > On Tue, Jun 12, 2018 at 2:16 PM, JJ Merelo wrote: > > This is what the documentation says: https://docs.perl6.org/sy

Re: stackoverflow vs the world (and perl6-users)

2018-06-12 Thread JJ Merelo
quite clear that wasn't my intention, and that the main problem was a misplaced "also". Never, ever, would I want to do that. > > But then, JJ Merelo (and Elizabeth Mattijsen) really aren't even > very bad offenders, as these things go. The fall-back position > about talking about th

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
El mar., 12 jun. 2018 a las 21:11, Brandon Allbery () escribió: > I should clarify this, but I'm not recalling full details at the moment > which is why I didn't originally. > > Perl uses a metaobject protocol (MOP, which you'll see in various places > in the docs). The "macro" to access the

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
El mar., 12 jun. 2018 a las 19:07, Brandon Allbery () escribió: > That was not "also", that was "this is the right way". "Ask questions in > StackOverflow whenever possible" does not leave room for "this is also a > good venue", it asserts that there is one proper venue and others are >

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
I have added this to the documentation: https://github.com/perl6/doc/commit/ddd101b089 I'll add also Liz's example to make it even clearer. Or maybe a link if it does not belong in that section. I'll see what's best. JJ

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
Please check this https://github.com/perl6/doc/commit/f6df30a8fc It's going to be soon in the docs (they are updated every 5 minutes if there are changes), however a general discussion of when to use "but" and when to use "does" is still missing. I'm working towards it in this page

Re: RFE: eval documentation

2018-06-14 Thread JJ Merelo
Can you please open an issue in perl6/doc? It's the best to track it, and also to check that it's been solved to everyone's satisfaction. If you can't for any reason, I can open it for you, but I'll have to keep coming back to see if it's OK when solved... El jue., 14 jun. 2018 a las 20:12,

Re: RFE: eval documentation

2018-06-14 Thread JJ Merelo
El jue., 14 jun. 2018 a las 23:34, ToddAndMargo () escribió: > On 06/14/2018 02:20 PM, JJ Merelo wrote: > > Can you please open an issue in perl6/doc? It's the best to track it, > > and also to check that it's been solved to everyone's satisfaction. > > > > If you can't

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
El mar., 12 jun. 2018 a las 18:34, Brandon Allbery () escribió: > You really do want to be exclusionary, don't you? > > yada yada stackoverflow is the one truth yada yada. > Well, it really helps newcomers to find answers to their problems. It's well indexed, and it also raises visibility of the

Re: mixin syntax: does vs but

2018-06-12 Thread JJ Merelo
Hi El mar., 12 jun. 2018 a las 18:56, Brandon Allbery () escribió: > Which doesn't change the fact that there's what amounts to an > accessibility issue. > > Do you *really* want to tell some percentage of people that they must be > willing to use the One True Web Site, or else go away because

Re: An operation first awaited

2018-05-28 Thread JJ Merelo
Hi El lun., 28 may. 2018 a las 9:04, Norman Gaywood () escribió: > T""his simple program creates a thread to read a directory with dir() and > place the files on a channel. $N worker threads read that channel and > "process" (prints) the files. But I'm getting this "An

Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread JJ Merelo
> > On Wed, Jun 20, 2018 at 9:59 PM, Todd Chester > What is a BEGIN block? BEGIN is one of the "phasers" that are used in Perl 6 https://docs.perl6.org/language/phasers#index-entry-Phasers__BEGIN-BEGIN It marks a block of code for running as soon as possible, and if possible during compile

Re: using run

2018-06-20 Thread JJ Merelo
El mié., 20 jun. 2018 a las 17:32, Theo van den Heuvel (< vdheu...@heuvelhlt.nl>) escribió: > Hi all, > > trying to make sense of the documentation on run: > https://docs.perl6.org/routine/run. > In particular the last part. I don't understand the adverbs :out and : > err there. > Posted as an

Re: .sub confusion

2018-05-01 Thread JJ Merelo
Can you please take this very interesting question (and the rest the answers) to StackOverflow? Cheers JJ

Re: odd and even

2018-04-30 Thread JJ Merelo
Check out the docs.perl6.org page... And no, we don't. El lun., 30 abr. 2018 a las 8:48, ToddAndMargo () escribió: > Hi All, > > I know it would only take me 25 seconds to write one, > but do we have an odd and even function build in? > > > Many thanks, > -T > > $ perl6 -e

Re: odd and even

2018-04-30 Thread JJ Merelo
When they are not, please raise an issue. We'll try to solve it ASAP. El lun., 30 abr. 2018 a las 9:46, ToddAndMargo (<toddandma...@zoho.com>) escribió: > On 04/30/2018 12:04 AM, JJ Merelo wrote: > > Check out the docs.perl6.org <http://docs.perl6.org> page... And no, w

Re: inheritance and default attributes

2018-04-30 Thread JJ Merelo
El lun., 30 abr. 2018 a las 11:08, Elizabeth Mattijsen () escribió: > > On 30 Apr 2018, at 10:55, Theo van den Heuvel > wrote: > > > > Hi all, > > > > trying to make sense of the following excerpt from the documentation on > object construction: > > > >

Data::Dump::Tree maintenance

2018-08-11 Thread JJ Merelo
Dear Mr. Khemir: I have noticed that there are a number of PRs and issues in the module mentioned above, including mine, which you apparently couldn't address. I have made several modifications to the module, and would be willing to take over it. Maybe you could give me a push bit in the repo? My

Re: I need the rules for running modules from the command line

2018-08-14 Thread JJ Merelo
Since I haven't done this for a long time, let me remind you the possibility of posting, if you will, your questions _also_ in StackOverflow. You'll (possibly) get more answers (or just different ones), and will help spread the word about Perl 6 (which lately has gone back to the usual regime of

Re: Perl6 POSIX IEEE Std 1003.1

2018-08-14 Thread JJ Merelo
Many of them are already in the ecosystem as part of lizmat's Buttefly project of porting Perl 5 CPAN modules to Perl 6. That If I remember correctly, the ones you mention are one of the few that are missing, but you can find most of them here: https://modules.perl6.org/search/?q=p5 Cheers El

Re: MAIN subroutine

2018-07-20 Thread JJ Merelo
In general, it needs to be improved. https://github.com/perl6/doc/issues/2167 Please add to that issue or open another one to comment this specific fact. Cheers JJ

Re: RFE: contains documentation

2018-09-09 Thread JJ Merelo
El sáb., 8 sept. 2018 a las 4:39, ToddAndMargo () escribió: > On 09/07/2018 06:25 PM, Curt Tilmes wrote: > > The documentation isn't a tutorial, but is still improving every day. > > For the function it is documenting, it had better be > a tutorial. Otherwise, why would anyone other than a >

Re: RFE: contains documentation

2018-09-09 Thread JJ Merelo
Here it is: https://github.com/perl6/doc/issues/2303 just in case you want to add something more. Cheers El dom., 9 sept. 2018 a las 20:11, JJ Merelo () escribió: > > > El sáb., 8 sept. 2018 a las 4:39, ToddAndMargo () > escribió: > >> On 09/07/2018 06:25

Re: RFE: contains documentation

2018-09-10 Thread JJ Merelo
Far as I can tell, it's DRM free and those who have supported it in kickstarter, like me, got PDF, epub and .mobi. I don't think it's a big problem if you borrow it from one of us. Just drop me (or I guess any other) an email El lun., 10 sept. 2018 a las 9:29, ToddAndMargo () escribió: > > > >

Re: Perl 6 Design specification?

2018-09-11 Thread JJ Merelo
Short answer: if you look up "perl 6 design specification" in any search engine (Google or Baidu) the 3-4 first results make sense. Long answer: it's a bit more complicated than that. First, there's the synopsis: (first result in Baidu) http://design.perl6.org/ Those are the initial guidelines

Re: Perl 6 Design specification?

2018-09-11 Thread JJ Merelo
> Hi JJ, > > Yes it helps a bunch. Thank you! > > Follow up: where would I find the design specifications for the functions? There's a search engine in design.perl.org, they should all be there. If you want to see how they work, use the search facility in the Roast repo. If you want to see how

Re: how do I do this index in p6?

2018-09-11 Thread JJ Merelo
perl6 -e 'say "abc".index("z") =:= Nil ?? "False" !! "True"' -e runs the script from the CL https://github.com/rakudo/rakudo/wiki/Running-rakudo-from-the-command-line "abc" is on front (but it could be in the same way) index return Nil if it does not found (more logical than -1)

Re: Please explain this to me

2018-09-11 Thread JJ Merelo
El mar., 11 sept. 2018 a las 12:15, Timo Paulssen () escribió: > The colon at the end of "Str:D:" signifies that it's a type constraint on > what you call the method on. For example: > That, of course, is also in the documentation:

Re: Please explain this to me

2018-09-11 Thread JJ Merelo
El mar., 11 sept. 2018 a las 12:26, ToddAndMargo () escribió: > On 09/11/2018 03:22 AM, Timo Paulssen wrote: > > On 11/09/18 12:18, JJ Merelo wrote: > >> > >> > >> El mar., 11 sept. 2018 a las 12:15, Timo Paulssen ( >> <mailto:t...@wakelift.de>

Re: Nil ?

2018-09-12 Thread JJ Merelo
When you assign Nil to a string or any object, it takes its default value. Cheers El mié., 12 sept. 2018 a las 10:23, Simon Proctor () escribió: > O learn something new everyday :) > > On Wed, 12 Sep 2018 at 08:46 Elizabeth Mattijsen wrote: > >> Also: >> >> my $a is default(Nil); >> >> >

Re: how do I do this index in p6?

2018-09-11 Thread JJ Merelo
El mar., 11 sept. 2018 a las 17:12, yary () escribió: > "Nil... it's a constant, so you have to use =:= to check for equality." > > Can you elaborate on that requirement? == works for an equality checks > with numeric constants- must be more than Nil's constant-ness that makes > one use =:= -

Re: Does words have a delimiter?

2018-04-14 Thread JJ Merelo
2018-04-14 7:27 GMT+02:00 ToddAndMargo : > Hi All, > > I am over on > https://docs.perl6.org/routine/words > and I can't make heads of tails out of it. > Can you please report that as an issue in https://github.com/perl6/doc/issues? Cheers JJ

Re: how do I do an integer divide?

2018-04-14 Thread JJ Merelo
That's actually in the documentation https://docs.perl6.org/routine/div Cheers JJ

Re: Blob - what am I missing?

2018-04-17 Thread JJ Merelo
2018-04-17 10:50 GMT+02:00 Fernando Santagata : > Hi, > I'm experimenting with Blob(s) and I'm under the impression that I don't > understand how they work. > > The documentation for the allocate() method (https://docs.perl6.org/type/ > Blob#method_allocate) reads: > >

Re: A problem with native CArrays

2018-09-30 Thread JJ Merelo
El dom., 30 sept. 2018 a las 15:54, Fernando Santagata (< nando.santag...@gmail.com>) escribió: > What I was pointing out is that the '*' operator outputs an error, and I > was expecting that, while the '+' doesn't. > Besides, the '+' delivers the correct result, which apparently indicates > that

Re: Package Compile Question

2018-09-30 Thread JJ Merelo
Is that taken verbatim from the docs? I'll create an issue if that's the case. JJ

Re: routine declaration line question

2018-10-05 Thread JJ Merelo
Hi, El vie., 5 oct. 2018 a las 18:01, Larry Wall () escribió: > On Thu, Oct 04, 2018 at 09:35:08PM +0200, JJ Merelo wrote: > : El jue., 4 oct. 2018 21:21, Brandon Allbery > escribió: > : > : > I don't think we've reached the point of such conventions yet. And > there's &g

Re: Strange output on 'say Foo::Bar::<>;'

2018-10-11 Thread JJ Merelo
I'll try to check that. It was recently changed, maybe it was not done completely... El jue., 11 oct. 2018 a las 17:44, Richard Hogaboom (< richard.hogab...@gmail.com>) escribió: > OK .. I mistakenly assumed that it should not compile from the doc > '(This does not work with the variable)'. > >

Re: Error in p6doc build

2018-10-16 Thread JJ Merelo
Here's the issue: https://github.com/perl6/doc/issues/2387 Please add/change whatever you want, or just comment if you want to be informed about its progress. Cheers El mié., 17 oct. 2018 a las 1:08, JJ Merelo () escribió: > Thanks for the report. We'll look into it. > > Cheers > &

Re: Error in p6doc build

2018-10-16 Thread JJ Merelo
Thanks for the report. We'll look into it. Cheers El mié., 17 oct. 2018 a las 0:52, Parrot Raiser (<1parr...@gmail.com>) escribió: > Attempting to build the P6doc index produced the following result: > - > $ p6doc build > Too many positionals passed; expected 1 argument but got 2 > in sub

Re: Pod Types that are *NOT* Pod::Block

2018-10-16 Thread JJ Merelo
Thanks for your answer, Tom. El mar., 16 oct. 2018 a las 16:39, Tom Browder () escribió: > On Tue, Oct 16, 2018 at 08:55 Richard Hainsworth > wrote: > >> Tom >> I was trying not to bother you with all my questions  >> > > Never a bother, Richard! > > However I looked at all the classes of pod

Perl 6 Advent calendar open for contributions

2018-11-15 Thread JJ Merelo
Do you have something to say with/about Perl 6? Add your name (and then write the article) to the Perl 6 Advent Calendar schedule! https://github.com/perl6/mu/blob/master/misc/perl6advent-2018/schedule ... Please! Cheers -- JJ

Re: routine declaration line question

2018-10-04 Thread JJ Merelo
Hi El jue., 4 oct. 2018 a las 20:48, Trey Harris () escribió: > > > On Thu, Oct 4, 2018 at 02:13 JJ Merelo wrote: > >> >> >> El jue., 4 oct. 2018 a las 3:36, Trey Harris () escribió: >> >>> _All_ routines in Perl 6 return _something._ A lack

Re: routine declaration line question

2018-10-04 Thread JJ Merelo
t;> things like AT-POS because why, then? >>>> On Thu, Oct 4, 2018 at 14:56 Brandon Allbery >>>> wrote: >>>> >>>>> I think they meant more like my AT-POS example: the point is the >>>>> return value, but you can't say ahead of time wh

Re: routine declaration line question

2018-10-04 Thread JJ Merelo
El jue., 4 oct. 2018 a las 21:02, Trey Harris () escribió: > Ah (replying to both Brandon and JJ since their replies crossed): > > So `--> Mu` is not a sufficient and/or correct return constraint for > things like AT-POS because why, then? > It's totally OK. The "incorrect" part might be because

Re: bitwise or?

2018-10-04 Thread JJ Merelo
El jue., 4 oct. 2018 a las 20:58, ToddAndMargo () escribió: > Hi All, > > I am trying to come up with something like += > > $ p6 'my $v = 32; $v += 2; say $v;' > 34 > > to replace > > $ p6 'my $v = 0b0010; $v = $v +| 0b0001; say $v;' > 48 > > > But I obviously have

Re: Landing page for Documentation

2018-10-03 Thread JJ Merelo
Hi, El mié., 3 oct. 2018 a las 12:13, Tom Browder () escribió: > On Wed, Oct 3, 2018 at 12:14 AM Richard Hainsworth > wrote: > > I have just started a review of the documentation for perl6. > > When I hit `https://docs.perl6.org/language.html` > I get a

Re: Landing page for Documentation

2018-10-02 Thread JJ Merelo
Hi El mié., 3 oct. 2018 a las 7:14, Richard Hainsworth () escribió: > I have just started a review of the documentation for perl6. > > When I hit `https://docs.perl6.org/language.html` > I get a list of > sections that is the same as the alphabetical list

Re: Could this be any more obscure?

2018-09-30 Thread JJ Merelo
El dom., 30 sept. 2018 a las 10:15, Laurent Rosenfeld via perl6-users (< perl6-users@perl.org>) escribió: > the words method is extracting items from an input string. The $limit > parameter tells the words method to extract not more than $limit items from > the string. Setting the default to Inf

Re: Package Compile Question

2018-10-01 Thread JJ Merelo
> outputs (Any), not zipi. The leading $ should be deleted. > > > say Foo::Bar::zape;# > compound identifiers separated by ::; OUTPUT: «zipi␤» > > outputs zipi correctly. This is only a doc issue, not a compiler issue. > > > On 9/30/18 1:47 PM, JJ Merelo wrote: > > I

Re: Package Compile Question

2018-10-01 Thread JJ Merelo
El lun., 1 oct. 2018 a las 13:47, Richard Hogaboom (< richard.hogab...@gmail.com>) escribió: > Hmm... the ($bar) in Foo::($bar)::<$quux>; is an interpolation, but the > <$quux> is just another way of writing $Foo::($bar)::quux;, not an > interpolation, no? > > Right. It kinda is, but it should

Re: routine declaration line question

2018-10-04 Thread JJ Merelo
El jue., 4 oct. 2018 a las 3:36, Trey Harris () escribió: > _All_ routines in Perl 6 return _something._ A lack of a "-->" simply > indicates stylistically that the return is not useful because it's whatever > "falls off the end". (There's a bit of variance here as I'm not sure it's a >

Re: routine declaration line question

2018-10-04 Thread JJ Merelo
El jue., 4 oct. 2018 a las 4:53, Trey Harris () escribió: > > On Wed, Oct 3, 2018 at 22:21 ToddAndMargo wrote: > >> >> On 04/10/2018 03:07, ToddAndMargo wrote: >> >>> Hi All, >> >>> >> >>> In another thread, Timo wrote me: >> >>> >> >>> The "-->" part of the signature is optional. If

Re: What is the syntax of a reference pointer in p6?

2018-10-06 Thread JJ Merelo
I don't know exactly what you mean by a reference pointer. If you mean a pointer, there's no such thing as a pointer, although there is some way to represent pointers in the NativeCall interface (which is properly Rakudo) https://docs.perl6.org/language/traits#index-entry-CPointer. There are no

Re: What is the syntax of a reference pointer in p6?

2018-10-06 Thread JJ Merelo
El sáb., 6 oct. 2018 a las 12:16, ToddAndMargo via perl6-users (< perl6-users@perl.org>) escribió: > On 10/6/18 2:01 AM, JJ Merelo wrote: > > I don't know exactly what you mean by a reference pointer. If you mean a > > pointer, there's no such thing as a pointer, altho

Re: bitwise or?

2018-10-06 Thread JJ Merelo
El sáb., 6 oct. 2018 a las 1:17, Timo Paulssen () escribió: > Yes, there is an absolutely tiny mention of it on the page: > > Metaoperators > > Metaoperators can be parameterized with other operators or subroutines in > the same way as functions can take functions as parameters. To use a >

Re: flatten?

2018-10-06 Thread JJ Merelo
Posted as an issue to the perl6/docs repo https://github.com/perl6/doc/issues/2360 Just in case anyone wants to clarify... Cheers JJ

Re: Could this be any more obscure?

2018-09-30 Thread JJ Merelo
El dom., 30 sept. 2018 a las 12:35, ToddAndMargo () escribió: > On 9/30/18 3:17 AM, JJ Merelo wrote: > > > > I actually found the Perl 6 description more readable. And the example > > is better too. > > I was showing the different philosophies. And I do agree, > th

Re: Could this be any more obscure?

2018-09-30 Thread JJ Merelo
El dom., 30 sept. 2018 a las 12:31, ToddAndMargo () escribió: > On 9/30/18 3:03 AM, JJ Merelo wrote: > > > > > > El dom., 30 sept. 2018 a las 11:32, ToddAndMargo ( > <mailto:toddandma...@zoho.com>>) escribió: > > > > On 9/26/18 7:27 PM

Re: Could this be any more obscure?

2018-09-30 Thread JJ Merelo
Hi El dom., 30 sept. 2018 a las 11:18, ToddAndMargo () escribió: > On 9/30/18 1:21 AM, JJ Merelo wrote: > > > > > > El dom., 30 sept. 2018 a las 10:15, Laurent Rosenfeld via perl6-users > > (mailto:perl6-users@perl.org>>) escribió: > > > > the w

Re: Could this be any more obscure?

2018-09-30 Thread JJ Merelo
El dom., 30 sept. 2018 a las 11:32, ToddAndMargo () escribió: > On 9/26/18 7:27 PM, Brandon Allbery wrote: > > And again: this is only because you know perl 5. People are not born > > knowing perl 5; to someone who doesn't know it, perldoc raises the same > > kinds of questions you have been

Re: Could this be any more obscure?

2018-09-30 Thread JJ Merelo
El dom., 30 sept. 2018 a las 12:04, Siavash () escribió: > > On 2018-09-30 13:01:32 +0330, ToddAndMargo wrote: > > On 9/26/18 7:27 PM, Brandon Allbery wrote: > >> And again: this is only because you know perl 5. People are not born > >> knowing perl 5; to someone who doesn't know it, perldoc

Re: A problem with native CArrays

2018-09-30 Thread JJ Merelo
This works: my int32 $a = 3; my int32 $b = 7; say $a * $b # OUTPUT: «21␤» El dom., 30 sept. 2018 a las 11:28, Fernando Santagata (< nando.santag...@gmail.com>) escribió: > Hi, > > I was hunting for a bug in my code, this one: > > my @a := CArray[int32].new: 6,3; > say [+] @a; # it should be

Re: Could this be any more obscure?

2018-09-30 Thread JJ Merelo
El dom., 30 sept. 2018 a las 12:51, ToddAndMargo () escribió: > On 9/30/18 3:00 AM, JJ Merelo wrote: > > Hi > > > > El dom., 30 sept. 2018 a las 11:18, ToddAndMargo ( > <mailto:toddandma...@zoho.com>>) escribió: > > > > On 9/30/18 1:21 AM, JJ Mere

Re: Could this be any more obscure?

2018-09-29 Thread JJ Merelo
Hi El sáb., 29 sept. 2018 a las 7:53, ToddAndMargo () escribió: > Proposed addition to "words": > > "$limits" is an optional argument. When left empty, the > value defaults to Inf (Infinity), meaning "without bound" > or "no limit" > > Inf means without bonds _always_. It says

Re: Could this be any more obscure?

2018-09-27 Thread JJ Merelo
El mié., 26 sept. 2018 a las 23:31, Laurent Rosenfeld via perl6-users (< perl6-users@perl.org>) escribió: > You can set a limit to the number of items (words) you want to retrieve: > you will get only the first $limit words. > > If you don't supply any limit, Inf can be thought as the default

Re: Could this be any more obscure?

2018-09-27 Thread JJ Merelo
El jue., 27 sept. 2018 a las 3:19, Brandon Allbery () escribió: > Additionally: Perl 5 docs don't run into this because perl 5 has only 3 > types: scalar, list, hash. > > Perl 6 has lots of types, each of which has its own behavior. We use roles > to package up common > _and_ roles _and_

Re: Could this be any more obscure?

2018-09-27 Thread JJ Merelo
El jue., 27 sept. 2018 a las 3:51, ToddAndMargo () escribió: > On 9/26/18 6:31 PM, ToddAndMargo wrote: > > On 9/26/18 6:18 PM, Curt Tilmes wrote:> > > > > The methods don't take []. You are calling [] on the thing > > that the > > > > methods return. > > > >>> > >>> Yes, I know.

Re: I need m/ help

2019-01-14 Thread JJ Merelo
El lun., 14 ene. 2019 a las 18:41, Brad Gilbert () escribió: > Nl is not “*non-arabic numbers*” and it is not “*numbers that have a > value by themselves*”. > While both seem like correct statements, they are the wrong way to think > about the Nl category. > If either were entirely correct then

Re: Strange output on 'say Foo::Bar::<>;'

2018-12-18 Thread JJ Merelo
Sorry to arrive so late here. I had the impression that there was some issue with the documentation here somewhere. Is that still the case? Can we improve docs in any way? El jue., 11 oct. 2018 a las 15:36, Richard Hogaboom (< richard.hogab...@gmail.com>) escribió: > # > # example from

Re: Exactly what is type match?

2018-12-20 Thread JJ Merelo
=> 1, made ...) > >> in block at -e line 1 > >> > >> Here is my work around: > >> > >> $ p6 'my $x="11.2.3.4"; my Str $D0; my Str $D1; my Str $D2; my Str > $D3; > >> $x~~m{ (<:N>+) [.] (\d+) [.] (\d+

Re: say Cool-concat-junction question

2018-12-23 Thread JJ Merelo
El dom., 23 dic. 2018 a las 7:39, Brad Gilbert () escribió: > I turns out there is a candidate for > > Str:D, Junction:D > > but not for > > Any:D, Junction:D > > so it is going through one of the other :<~> candidates, > specifically it looks like it could be > > *@args > > Which doesn't

Re: Basic question about lexical binding in relationship with "list assignment"

2018-12-27 Thread JJ Merelo
Hi, El jue., 27 dic. 2018 a las 9:30, Raymond Dresens (< raymond.dres...@gmail.com>) escribió: > Hello, > > I'm getting up to speed with Perl 6 again after a long while, and I more > or less 'hit my nose' against something that I can reduce to the > following very basic snippet of code: > >

Re: Pair colon-chains

2018-12-25 Thread JJ Merelo
Probably not. Can you please raise an issue in perl6/doc? The first one seems specially inconsistent... We'll have to check also if it's REPL only or it extends somewhere else... El mar., 25 dic. 2018 a las 1:23, yary () escribió: > https://docs.perl6.org/type/Pair says "Colon pairs can be

Re: I need hash inside a hash help

2019-01-11 Thread JJ Merelo
What would you say is the error, according to where the arrow points to? Maybe some unclosed double quotes? El vie., 11 ene. 2019 a las 19:57, ToddAndMargo via perl6-users (< perl6-users@perl.org>) escribió: > Hi All, > > How do I do a hash inside a hash? > > So far I have: > > $ p6 'my

Re: I need hash inside a hash help

2019-01-11 Thread JJ Merelo
I think you want $x, not $Ace. Cheers El vie., 11 ene. 2019 a las 20:26, ToddAndMargo via perl6-users (< perl6-users@perl.org>) escribió: > On 1/11/19 11:16 AM, Bruce Gray wrote: > > > > > >> On Jan 11, 2019, at 12:41 PM, ToddAndMargo via perl6-users < > perl6-users@perl.org> wrote: > >> > >>

Re: POD: linking to a module

2019-01-11 Thread JJ Merelo
Actually, we had that functionality, but it was recently eliminated by Richard Hainsworth since, as a matter of fact, there are no specs on what to actually do with them. And it was eliminated for several reasons, one of which is that MetaCPAN does not display Pod6, but the main reason is that

Re: I need m/ help

2019-01-13 Thread JJ Merelo
I would say they are numbers that have a value by themselves, but can't be collated to other numbers to form bigger numbers, that is, they are not digits and they don't have a positional value. El dom., 13 ene. 2019 a las 20:13, Timo Paulssen () escribió: > There ought to be some documentation

Re: POD: linking to a module

2019-01-13 Thread JJ Merelo
Hi, El dom., 13 ene. 2019 a las 1:48, Vadim Belman () escribió: > Not to mention different module versions, on top of what you wrote. > > Ok, I would think about it. One thing comes to my mind: in Synopsis 26 ( > https://design.perl6.org/S26.html) there is a mention of =config > directive. It

Re: how do I do this index in p6?

2018-09-13 Thread JJ Merelo
Of course, you can also use Math::Constants use Math::Constants; say "We are flying at speed ", .1c; -- JJ

Re: Please explain this to me

2018-09-13 Thread JJ Merelo
Hi, El vie., 14 sept. 2018 a las 7:11, Todd Chester () escribió: > > > On 09/11/2018 05:05 AM, Simon Proctor wrote: > > Please note the Perl5 docs have had decades of people working on them > > the Perl6 ones less so. There's bound to be some difference in scope. > > Hi Simon, > > That you

Re: Roles are fundamentally broken?

2019-01-30 Thread JJ Merelo
El mié., 30 ene. 2019 a las 7:48, yary () escribió: > > Yet, have a look at my example with private methods > > All of the bug reports, code excerts use regular (public) methods. Do you > have code to share with !private_methods and/or submethods? I just made an > example, will be at the end of

Re: How do I use chr inside a regex?

2019-02-01 Thread JJ Merelo
Hi, El sáb., 2 feb. 2019 a las 7:48, ToddAndMargo via perl6-users (< perl6-users@perl.org>) escribió: > Hi All, > > How do I use chr inside a regex. In the below, how > do I get rid of $y? > > $ p6 'my Str $x=chr(0x66)~chr(0x77); my Str $y=chr(0x66)~chr(0x77); > $x~~s/ $y /xy/; say $x;' > > If

Re: I need one liner module import help

2019-06-13 Thread JJ Merelo
Hi, El jue., 13 jun. 2019 a las 9:39, ToddAndMargo via perl6-users (< perl6-users@perl.org>) escribió: > On 6/11/19 3:39 PM, ToddAndMargo via perl6-users wrote: > > This works: > > > > perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintColors :PrintBlue; > > PrintBlue( "Blue\n" );' > > > > Blue

Re: push() practice: misplaced semicolon creates list elements within array?

2019-05-02 Thread JJ Merelo
El dom., 14 abr. 2019 a las 22:27, yary () escribió: > Looks like perl6 semicolon has different meaning in a list vs a capture. > In a list, it "makes sense to me" > > > perl6 --version > This is Rakudo Star version 2018.10 built on MoarVM version 2018.10 > implementing Perl 6.c. > >perl6 > To

Re: Short term Zef fix

2019-04-30 Thread JJ Merelo
The problem with that is that it will go from using the old version of the file (and old versions of modules there) to none of them. It's probably better to lower the timeout... El mar., 30 abr. 2019 a las 12:07, Simon Proctor () escribió: > Until the p6c system is fixed here's a short term fix

  1   2   3   >