Re: question about the multi in method

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 07:07:29PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-06-07 14:20, Peter Pentchev wrote: > > On Sun, Jun 07, 2020 at 12:28:33PM -0700, ToddAndMargo via perl6-users > > wrote: > > > On 2020-06-07 08:19, Peter Pentchev wrote: > > > > On Sun, Jun 07, 2020 at 09:04:45

Re: I need a GTK pop up with time out

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 19:47, ToddAndMargo via perl6-users wrote: Hi Richard, How do I stretch the box out so it will show the entire title? -T Only one letter in the title shows https://ibb.co/X3sVxBV

Re: I need a GTK pop up with time out

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 20:06, ToddAndMargo via perl6-users wrote: On 2020-06-07 19:47, ToddAndMargo via perl6-users wrote: Hi Richard, How do I stretch the box out so it will show the entire title? -T Figured out what is going wrong with the :timer $data = inform( 'Something cleaver here ',

Re: I need a GTK pop up with time out

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 19:47, ToddAndMargo via perl6-users wrote: Hi Richard, How do I stretch the box out so it will show the entire title? -T Figured out what is going wrong with the :timer $data = inform( 'Something cleaver here ', :timer(5), # :buttons( [ :OK("O

Re: I need a GTK pop up with time out

2020-06-07 Thread ToddAndMargo via perl6-users
Hi Richard, How do I stretch the box out so it will show the entire title? -T

Re: I need a GTK pop up with time out

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 08:45, Richard Hainsworth wrote: Hi Richard, Some follow questions: 1) where are the directions? I don't understand this question. Which directions? I tried to make the example as full of explanation as possible. where are the variable definitions? I don't understand this. T

Re: question about the multi in method

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 14:20, Peter Pentchev wrote: On Sun, Jun 07, 2020 at 12:28:33PM -0700, ToddAndMargo via perl6-users wrote: On 2020-06-07 08:19, Peter Pentchev wrote: On Sun, Jun 07, 2020 at 09:04:45AM -0500, Brad Gilbert wrote: On Sun, Jun 7, 2020 at 3:15 AM ToddAndMargo via perl6-users < perl6-

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 00:28, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to do an "if" on "use lib", so I do not have to keep commenting these back and forth? # use lib 'C:/NtUtil', '.'; use lib 'C:/NtUtil', '.', 'K:/NtUtil'; Many thanks, -T Follow up: With tons of help from Peter an

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 14:40, Peter Pentchev wrote: On Mon, Jun 08, 2020 at 12:26:42AM +0300, Peter Pentchev wrote: On Mon, Jun 08, 2020 at 12:21:22AM +0300, Peter Pentchev wrote: On Sun, Jun 07, 2020 at 01:57:11PM -0700, ToddAndMargo via perl6-users wrote: On 2020-06-07 13:53, Peter Pentchev wrote: $

Re: question about the multi in method

2020-06-07 Thread Peter Pentchev
On Mon, Jun 08, 2020 at 12:20:03AM +0300, Peter Pentchev wrote: > On Sun, Jun 07, 2020 at 12:28:33PM -0700, ToddAndMargo via perl6-users wrote: > > On 2020-06-07 08:19, Peter Pentchev wrote: > > > On Sun, Jun 07, 2020 at 09:04:45AM -0500, Brad Gilbert wrote: > > > > On Sun, Jun 7, 2020 at 3:15 AM T

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 05:33:43PM -0400, Will Coleda wrote: > On Sun, Jun 7, 2020 at 4:53 PM Peter Pentchev wrote: > > > > On Sun, Jun 07, 2020 at 12:32:09PM -0700, ToddAndMargo via perl6-users > > wrote: > > > On 2020-06-07 02:32, Peter Pentchev wrote: > > > > > > > BEGIN { > > > > $path =

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread Peter Pentchev
On Mon, Jun 08, 2020 at 12:26:42AM +0300, Peter Pentchev wrote: > On Mon, Jun 08, 2020 at 12:21:22AM +0300, Peter Pentchev wrote: > > On Sun, Jun 07, 2020 at 01:57:11PM -0700, ToddAndMargo via perl6-users > > wrote: > > > On 2020-06-07 13:53, Peter Pentchev wrote: > > > > $path = 'lib1'.IO.d ?? 'l

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread Will Coleda
the URL with literal !! in it didn't work for me, but this does: https://docs.raku.org/language/operators#infix_??_%21%21 On Sun, Jun 7, 2020 at 4:53 PM Peter Pentchev wrote: > > On Sun, Jun 07, 2020 at 12:32:09PM -0700, ToddAndMargo via perl6-users wrote: > > On 2020-06-07 02:32, Peter Pentchev

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread Peter Pentchev
On Mon, Jun 08, 2020 at 12:21:22AM +0300, Peter Pentchev wrote: > On Sun, Jun 07, 2020 at 01:57:11PM -0700, ToddAndMargo via perl6-users wrote: > > On 2020-06-07 13:53, Peter Pentchev wrote: > > > $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2'; > > > > Got it! Thank you! > > > > I am not seeing the abo

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 12:32, ToddAndMargo via perl6-users wrote: n 2020-06-07 02:32, Peter Pentchev wrote: BEGIN { $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2'; } Does the final "}" close the BEGIN? Hi Peter, I am so use to BEGIN ... END In other languages, that I had to ask. Modula2 i

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 01:57:11PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-06-07 13:53, Peter Pentchev wrote: > > $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2'; > > Got it! Thank you! > > I am not seeing the above enter the proper syntax: > > 'lib1', 'lib2' etc. > > Where is the com

Re: question about the multi in method

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 12:28:33PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-06-07 08:19, Peter Pentchev wrote: > > On Sun, Jun 07, 2020 at 09:04:45AM -0500, Brad Gilbert wrote: > > > On Sun, Jun 7, 2020 at 3:15 AM ToddAndMargo via perl6-users < > > > perl6-us...@perl.org> wrote: > > >

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 13:57, ToddAndMargo via perl6-users wrote: On 2020-06-07 13:53, Peter Pentchev wrote: $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2'; Got it!  Thank you! I am not seeing the above enter the proper syntax:     'lib1', 'lib2' etc. Where is the comma?  How are the single quotes entered

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 13:53, Peter Pentchev wrote: $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2'; Got it! Thank you! I am not seeing the above enter the proper syntax: 'lib1', 'lib2' etc. Where is the comma? How are the single quotes entered? -T

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 12:32:09PM -0700, ToddAndMargo via perl6-users wrote: > On 2020-06-07 02:32, Peter Pentchev wrote: > > > BEGIN { > > $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2'; > > } > > Does the final "}" close the BEGIN? Well, there is an opening { after "BEGIN", so, yes. More precis

Re: question about the multi in method

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 08:29, Veesh Goldman wrote: I imagine they called it cool because it, indeed, is cool. The Raku developers do have a sense of humor. Cool, needle, slurp, spurt: someone had a good laugh. :-)

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 02:32, Peter Pentchev wrote: BEGIN { $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2'; } Does the final "}" close the BEGIN? $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2'; Hi Peter, Would you explain what the ?? and !! are doing in the above? Many thanks, -T

Re: question about the multi in method

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 08:19, Peter Pentchev wrote: On Sun, Jun 07, 2020 at 09:04:45AM -0500, Brad Gilbert wrote: On Sun, Jun 7, 2020 at 3:15 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: Hi All, Dumb question: Does the "multi" in "multi method" mean there is more than one way to add

Re: I need a GTK pop up with time out

2020-06-07 Thread Richard Hainsworth
Mea culpa :!show-countdown === :show-countdown(False) :show-countdown === :show-coundown(True) But skewer-names, not snake. Thanks Peter for the correction. Richard On 07/06/2020 17:18, Peter Pentchev wrote: On Sun, Jun 07, 2020 at 04:45:16PM +0100, Richard Hainsworth wrote: Todd I'm answ

Re: I need a GTK pop up with time out

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 04:45:16PM +0100, Richard Hainsworth wrote: > Todd > > I'm answering this question in the main list to explain some shortcuts. > > Just to make sure it all works (if Windows will accept GTK), copy the > program from the Readme to a script file and run it with raku. > > Pl

Re: I need a GTK pop up with time out

2020-06-07 Thread Richard Hainsworth
Todd I'm answering this question in the main list to explain some shortcuts. Just to make sure it all works (if Windows will accept GTK), copy the program from the Readme to a script file and run it with raku. Playing around with it should make things clear. On 07/06/2020 07:16, ToddAndMargo

Re: question about the multi in method

2020-06-07 Thread Veesh Goldman
I imagine they called it cool because it, indeed, is cool. On Sun, Jun 7, 2020, 18:28 Peter Pentchev wrote: > On Sun, Jun 07, 2020 at 06:19:29PM +0300, Peter Pentchev wrote: > > On Sun, Jun 07, 2020 at 09:04:45AM -0500, Brad Gilbert wrote: > > > On Sun, Jun 7, 2020 at 3:15 AM ToddAndMargo via pe

Re: question about the multi in method

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 06:19:29PM +0300, Peter Pentchev wrote: > On Sun, Jun 07, 2020 at 09:04:45AM -0500, Brad Gilbert wrote: > > On Sun, Jun 7, 2020 at 3:15 AM ToddAndMargo via perl6-users < > > perl6-us...@perl.org> wrote: > > > > > Hi All, > > > > > > Dumb question: > > > > > > Does the "mult

Re: question about the multi in method

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 09:04:45AM -0500, Brad Gilbert wrote: > On Sun, Jun 7, 2020 at 3:15 AM ToddAndMargo via perl6-users < > perl6-us...@perl.org> wrote: > > > Hi All, > > > > Dumb question: > > > > Does the "multi" in "multi method" mean there > > is more than one way to address a method? > >

Re: question about the multi in method

2020-06-07 Thread Brad Gilbert
There are four different types of a function. (both method and sub) - `multi` - `proto` - `only` - `anon` A `proto` function is mainly just to declare there will be multiple functions with same name. `multi` is short for "multiple", meaning more than one. `only` is the default, it means there is

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 11:37:43AM +0200, JJ Merelo wrote: > El dom., 7 jun. 2020 a las 11:32, Peter Pentchev () > escribió: > > > On Sun, Jun 07, 2020 at 12:28:36AM -0700, ToddAndMargo via perl6-users > > wrote: > > > Hi All, > > > > > > Is there a way to do an "if" on "use lib", so > > > I do no

Re: changing name of module

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 02:28:08PM +0100, Richard Hainsworth wrote: > On 07/06/2020 13:31, Parrot Raiser wrote: > > Create an updated version, perhaps with an "rk" prefix, (preserving > > any text alignment, since "p6" and "rk" are the same length), then > > change the "pk" version simply to invoke

Re: changing name of module

2020-06-07 Thread Richard Hainsworth
Why nanoseconds slower? (I won't notice them, but why would a name change slow things?) If alignment is not a concern, then p6 and raku are equivalent? On 07/06/2020 13:31, Parrot Raiser wrote: Create an updated version, perhaps with an "rk" prefix, (preserving any text alignment, since "p6" a

Re: changing name of module

2020-06-07 Thread Parrot Raiser
Create an updated version, perhaps with an "rk" prefix, (preserving any text alignment, since "p6" and "rk" are the same length), then change the "pk" version simply to invoke the "rk"? Existing code should continue to work, albeit nanoseconds slower, while new code can be culturally consistent.

changing name of module

2020-06-07 Thread Richard Hainsworth
Hi, I've written some modules and released them into the Ecosystem. (I don't use cpan for raku) In the past, I have named my modules 'p6-xxx'. So references for zef would be git - finanalyst - p6-xxx (loosely speaking). Now I am considering whether to rename the module to `raku-xxx` There

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread JJ Merelo
Also, you can simply issue different -I arguments when you invoke the script; you can put that in a shell or whatever script raku -Imy/lib script for your own lib raku -Iother/lib script for other (or Windows equivalent). No need to use Raku to change the path, actually. El dom., 7 jun. 2020

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread Peter Pentchev
On Sun, Jun 07, 2020 at 12:28:36AM -0700, ToddAndMargo via perl6-users wrote: > Hi All, > > Is there a way to do an "if" on "use lib", so > I do not have to keep commenting these back and forth? > > # use lib 'C:/NtUtil', '.'; > use lib 'C:/NtUtil', '.', 'K:/NtUtil'; "use lib" is evaluated quite

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 01:39, JJ Merelo wrote: No, there's no else. This if is for using modules with different names. If you want to use modules in different paths, it's probably not a good idea to call them by the same name. You can call them different names (and do a use lib on all paths), or use oth

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread JJ Merelo
No, there's no else. This if is for using modules with different names. If you want to use modules in different paths, it's probably not a good idea to call them by the same name. You can call them different names (and do a use lib on all paths), or use other mechanisms to differentiate them, such

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
On 2020-06-07 00:55, ToddAndMargo via perl6-users wrote: El dom., 7 jun. 2020 a las 9:29, ToddAndMargo via perl6-users (mailto:perl6-us...@perl.org>>) escribió:     Hi All,     Is there a way to do an "if" on "use lib", so     I do not have to keep commenting these back and forth?     # use l

question about the multi in method

2020-06-07 Thread ToddAndMargo via perl6-users
Hi All, Dumb question: Does the "multi" in "multi method" mean there is more than one way to address a method? Or, are the all methods "multi methods". If not and the method is a multi, should not the documentation show all (more than one) the ways of addressing a multi method? Many thanks, -

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
El dom., 7 jun. 2020 a las 9:29, ToddAndMargo via perl6-users (mailto:perl6-us...@perl.org>>) escribió: Hi All, Is there a way to do an "if" on "use lib", so I do not have to keep commenting these back and forth? # use lib 'C:/NtUtil', '.'; use lib 'C:/NtUtil', '.', 'K:/NtU

Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread JJ Merelo
Unsurprisingly, there is "if": https://github.com/FROGGS/p6-if Install it with zef install if And then... use if; # activate the :if adverb on use statements use My::Linux::Backend:if($*KERNEL.name eq 'linux');use My::Fallback::Backend:if($*KERNEL.name ne 'linux'); El dom., 7 jun. 2020 a las

Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread ToddAndMargo via perl6-users
Hi All, Is there a way to do an "if" on "use lib", so I do not have to keep commenting these back and forth? # use lib 'C:/NtUtil', '.'; use lib 'C:/NtUtil', '.', 'K:/NtUtil'; Many thanks, -T