Re: How do you call the variable types?

2017-06-08 Thread Richard Hainsworth
It also seems to me that 'scalar' gives the wrong impression compared to arrays. A scalar in a vector is a component of a vector. I was thinking of "generic". Hence "$variable" is a generic variable because it can hold any type of content. On Friday, June 09, 2017 02:10 PM, Gabor Szabo wrot

How do you call the variable types?

2017-06-08 Thread Gabor Szabo
Looking at https://docs.perl6.org/language/variables there are 4 variable types with sigil: $, @, %, &. In Perl 5 I used to call them scalar, array, hash, and function respectively, even if the scalar variable had a reference to an array in it. How do you call them in Perl 6? As I understand @ a

[perl #131541] Shortcuts for ./lib and ../lib

2017-06-08 Thread Zoffix Znet via RT
On Thu, 08 Jun 2017 16:39:40 -0700, ju...@tnx.nl wrote: > Because putting bundled libraries in ./lib or ../lib relative to the > executable is so common, I'd like to request a feature for shortcuts for > these. > > I'm thinking of: > > use lib :parentdir; > # as a shortcut for: > use

[perl #131541] Shortcuts for ./lib and ../lib

2017-06-08 Thread Zoffix Znet via RT
On Thu, 08 Jun 2017 16:39:40 -0700, ju...@tnx.nl wrote: > Because putting bundled libraries in ./lib or ../lib relative to the > executable is so common, I'd like to request a feature for shortcuts for > these. > > I'm thinking of: > > use lib :parentdir; > # as a shortcut for: > use

[perl #131540] "use lib" supports only Str, not IO::Path

2017-06-08 Thread Zoffix Znet via RT
On Thu, 08 Jun 2017 16:33:33 -0700, ju...@tnx.nl wrote: > It'd be nice if I didn't have to stringify this myself: > > use lib $*PROGRAM.resolve.sibling('lib'); > > Currently, this results in the following failure: > > Type check failed in binding to parameter '$spec'; expected Str but >

[perl #131540] "use lib" supports only Str, not IO::Path

2017-06-08 Thread Zoffix Znet via RT
On Thu, 08 Jun 2017 16:33:33 -0700, ju...@tnx.nl wrote: > It'd be nice if I didn't have to stringify this myself: > > use lib $*PROGRAM.resolve.sibling('lib'); > > Currently, this results in the following failure: > > Type check failed in binding to parameter '$spec'; expected Str but >

[perl #131542] [BUG] `state` variables unset if multi candidate uses named params

2017-06-08 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131542] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131542 > the `state $l` appears to break the moment we add an unrelated named param to it (doesn't

[perl #125813] [UNI] Malformed UTF-8 (string out of bounds) with “say ('a' x 10000).IO.open”

2017-06-08 Thread Samantha McVey via RT
> Result: > Malformed UTF-8 at line 1 col 1029 > in block at ./test.pl:2

Re: [perl #131481] [BUG] No perl6-debug

2017-06-08 Thread Richard Hainsworth
This is slightly different to what is in documentation. ' "[TBD]" are to be defined later' is in the file I took "defined" to mean "done" rather than "documented". In other words, something that did not exist, but should exist. What seems to be the case is that "defined" means "exists, but is

Re: [perl #131481] [BUG] No perl6-debug

2017-06-08 Thread Richard Hainsworth via RT
This is slightly different to what is in documentation. ' "[TBD]" are to be defined later' is in the file I took "defined" to mean "done" rather than "documented". In other words, something that did not exist, but should exist. What seems to be the case is that "defined" means "exists, but is n

[perl #131492] Camelia produces different error message from commandline

2017-06-08 Thread Will Coleda via RT
On Wed, 07 Jun 2017 11:46:03 -0700, ben-goldb...@hotmail.com wrote: > On Monday, June 05, 2017 5:05 PM, Will Coleda via RT wrote: > > On Fri, 02 Jun 2017 23:29:40 -0700, ben-goldb...@hotmail.com wrote: > > > On #perl6 IRC, I typed this: > > > > > > m: my \foo = Callable but role :: { }; > > > <+c

[perl #131492] Camelia produces different error message from commandline

2017-06-08 Thread Will Coleda via RT
On Wed, 07 Jun 2017 11:46:03 -0700, ben-goldb...@hotmail.com wrote: > On Monday, June 05, 2017 5:05 PM, Will Coleda via RT wrote: > > On Fri, 02 Jun 2017 23:29:40 -0700, ben-goldb...@hotmail.com wrote: > > > On #perl6 IRC, I typed this: > > > > > > m: my \foo = Callable but role :: { }; > > > <+c

[perl #131541] Shortcuts for ./lib and ../lib

2017-06-08 Thread via RT
# New Ticket Created by Juerd Waalboer # Please include the string: [perl #131541] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131541 > Because putting bundled libraries in ./lib or ../lib relative to the executable is so c

Re: [perl #131481] [BUG] No perl6-debug

2017-06-08 Thread Will Coleda
TBD there indicates that the documentation is yet to be done. On Thu, Jun 8, 2017 at 4:38 AM, Richard Hainsworth wrote: > Thanks for feedback. A follow up: > > >> >> Yes, use `no precompilation` pragma. >> >> > So I would have in the topmost program: > > use v6.c; > no precompilation; > > In the

Re: [perl #131481] [BUG] No perl6-debug

2017-06-08 Thread Will Coleda via RT
TBD there indicates that the documentation is yet to be done. On Thu, Jun 8, 2017 at 4:38 AM, Richard Hainsworth wrote: > Thanks for feedback. A follow up: > > >> >> Yes, use `no precompilation` pragma. >> >> > So I would have in the topmost program: > > use v6.c; > no precompilation; > > In the

[perl #131540] "use lib" supports only Str, not IO::Path

2017-06-08 Thread via RT
# New Ticket Created by Juerd Waalboer # Please include the string: [perl #131540] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131540 > It'd be nice if I didn't have to stringify this myself: use lib $*PROGRAM.resolve.

[perl #131539] [LTA] $*PERL.compiler.version produces different versions on different OSes even if built from same commit

2017-06-08 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131539] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131539 > Last night, I fixed a bug and used RakudoPrereq.pm6 to lock my module to latest and great

Re: [perl #131528] [PRECOMP] Issues when sub itself instead of its "dispatcher" used in sub EXPORT

2017-06-08 Thread Lloyd Fournier via RT
I think this is just another example of the compile time closures problem since EXPORT runs at compile time in during the loading module's compilation. https://rt.perl.org/Public/Bug/Display.html?id=128636 For an example in my own code: https://github.com/spitsh/spitsh/blob/master/lib/Spit/Const

Re: [perl #131528] [PRECOMP] Issues when sub itself instead of its "dispatcher" used in sub EXPORT

2017-06-08 Thread Lloyd Fournier
I think this is just another example of the compile time closures problem since EXPORT runs at compile time in during the loading module's compilation. https://rt.perl.org/Public/Bug/Display.html?id=128636 For an example in my own code: https://github.com/spitsh/spitsh/blob/master/lib/Spit/Const

Re: [perl #126732] [RFC] Problem with superscripts when there is no number in front of it (³² == 9)

2017-06-08 Thread Brandon Allbery
On Thu, Jun 8, 2017 at 6:22 AM, Zoffix Znet via RT < perl6-bugs-follo...@perl.org> wrote: > > m: sub infix:<2> { $^a + $^b }; say 2 2 2 > rakudo-moar 1ac799: OUTPUT: «4␤» > > Because when an op is expected. There's just one op named `2`. And when > a term is expected, there's just one term

[perl #126732] [RFC] Problem with superscripts when there is no number in front of it (³² == 9)

2017-06-08 Thread Zoffix Znet via RT
After a conversation in #perl6-dev[^1], I'm rejecting this ticket. Unlike invisible operators (RT#128159), there's no security risk involved. Unlike `&0` (RT#128159), there's no ambiguity in what the non-throwing behaviour is supposed to be. This is just a peculiar intersection of two very-well d

[perl #126732] [RFC] Problem with superscripts when there is no number in front of it (³² == 9)

2017-06-08 Thread Zoffix Znet via RT
After a conversation in #perl6-dev[^1], I'm rejecting this ticket. Unlike invisible operators (RT#128159), there's no security risk involved. Unlike `&0` (RT#128159), there's no ambiguity in what the non-throwing behaviour is supposed to be. This is just a peculiar intersection of two very-well d

Re: [perl #126732] [RFC] Problem with superscripts when there is no number in front of it (³² == 9)

2017-06-08 Thread Joachim Durchholz
I do understand the operand-operator idea now, but I think that allowing the same symbol to be both operand and operator is a terrible idea. Feel free to disagree, I'm not going to argue that point. Otherwise: And since nobody is going to use that > > Yes! Exactly. You've put the nail in your

[perl #126732] [RFC] Problem with superscripts when there is no number in front of it (³² == 9)

2017-06-08 Thread Zoffix Znet via RT
Quoting Joachim Durchholz : > Am 08.06.2017 um 01:11 schrieb Zoffix Znet via RT: >> Quoting Joachim Durchholz : > That cannot be correct. There's that other rule that turns > superscripts into exponents. Except it IS correct. There's no "other rule". There are No characters as literals and supe

[perl #126732] [RFC] Problem with superscripts when there is no number in front of it (³² == 9)

2017-06-08 Thread Zoffix Znet via RT
Quoting Joachim Durchholz : > Am 08.06.2017 um 01:11 schrieb Zoffix Znet via RT: >> Quoting Joachim Durchholz : > That cannot be correct. There's that other rule that turns > superscripts into exponents. Except it IS correct. There's no "other rule". There are No characters as literals and supe

Re: [perl #131481] [BUG] No perl6-debug

2017-06-08 Thread Richard Hainsworth via RT
Thanks for feedback. A follow up: > Yes, use `no precompilation` pragma. > > So I would have in the topmost program: use v6.c; no precompilation; In the documentation (https://docs.perl6.org/language/pragmas), precompilation is labelled [TBD] So is it ignored ? Regards, Richard

Re: [perl #131481] [BUG] No perl6-debug

2017-06-08 Thread Richard Hainsworth
Thanks for feedback. A follow up: Yes, use `no precompilation` pragma. So I would have in the topmost program: use v6.c; no precompilation; In the documentation (https://docs.perl6.org/language/pragmas), precompilation is labelled [TBD] So is it ignored ? Regards, Richard