[perl #122838] [BUG] BEGIN GLOBAL::name assignment does not work in Rakudo

2014-09-24 Thread Carl Mäsak
# New Ticket Created by  Carl Mäsak 
# Please include the string:  [perl #122838]
# in the subject line of all future correspondence about this issue. 
# URL: https://rt.perl.org/Ticket/Display.html?id=122838 


nine m: BEGIN GLOBAL::Test = class { }; Test.new;
camelia rakudo-moar 682e03: OUTPUT«===SORRY!===␤Object of type
anon in QAST::WVal, but not in SC␤»
masak nine: looks like a bug.
nine masak: any idea how I can create a class with a fully qualified
name from an EVAL that's deep in some other namespace?
nine masak: as in Inline::Perl5::Perl6PackageCreator::create runs an
EVAL that should create a class called Foo::Bar::Baz.
lizmat nine: EVAL class Foo::Bar::Baz {} doesn't cut it ?
lizmat alternately EVAL class Foo { class Bar { class Baz {}}}' ?
lizmat or actually, maybe both?
nine lizmat: nope, that creates
Inline::Perl5::Perl6PackageCreator::Foo::Bar::Baz (what a handy name
;)
nine m: BEGIN GLOBAL::Test := class { }; Test.new;
camelia rakudo-moar 682e03: ( no output )
nine ah, := works, while = does not
jnthn nine: Does class GLOBAL::Foo::Bar::Baz { } not do it?
nine jnthn: no, the GLOBAL:: is pretty much ignored
jnthn ah
jnthn Maybe that wants fixing
jnthn But afer dinner
* masak submits rakudobug
nine jnthn: according to S10, GLOBAL:: should do it though
jnthn nine: That's my feeling too


[perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-09-24 Thread via RT
# New Ticket Created by  Paul Marquess 
# Please include the string:  [perl #122839]
# in the subject line of all future correspondence about this issue. 
# URL: https://rt.perl.org/Ticket/Display.html?id=122839 


Start with a fresh install of R* 2014.08 (from 
http://rakudo.org/downloads/star/rakudo-star-2014.08.tar.gz) on a Linux box.

When I attempted to install Compress::Zlib with panda I got this error

$ ~/p/bin/panda install Compress::Zlib
== Compress::Zlib depends on NativeCall, Compress::Zlib::Raw
== Compress::Zlib::Raw depends on NativeCall
== Fetching NativeCall
== Building NativeCall
Compiling lib/NativeCall.pm6 to mbc
===SORRY!===
No registered operation handler for 'nativecallglobal'
build stage failed for NativeCall: Failed building lib/NativeCall.pm6


Problem is NativeCall is installed 

$ ~/p/bin/perl6 -MNativeCall -e 1
$ find ~/p/languages/perl6/ -name NativeCall\*
/home/pmarques/p/languages/perl6/lib/NativeCall.pm6.moarvm
/home/pmarques/p/languages/perl6/lib/NativeCall.pm6


Can work around by running panda with --nodeps.

Not sure if panda can see *any* of the installed modules. Picked JSON::Tiny at 
random and panda doesn't think it is installed either.


$ ~/p/bin/panda info JSON::Tiny
JSON::Tiny
A minimal JSON (de)serializer
State: not installed
Source-url: git://github.com/moritz/json.git




[perl6/specs] cd1ca7: Eradicate chtmpdir/chhomedir in favour of chdir

2014-09-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: cd1ca780c1f0007f6ee0ce12e0ebf738ca8a7c3b
  
https://github.com/perl6/specs/commit/cd1ca780c1f0007f6ee0ce12e0ebf738ca8a7c3b
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-23 (Tue, 23 Sep 2014)

  Changed paths:
M S16-io.pod

  Log Message:
  ---
  Eradicate chtmpdir/chhomedir in favour of chdir

With extra :test capability.




[perl6/specs] 812d1a: Add IO::Path.slurp + some cosmetics

2014-09-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: 812d1ac3e37db027d54b79ee82ffaeee772689cf
  
https://github.com/perl6/specs/commit/812d1ac3e37db027d54b79ee82ffaeee772689cf
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-24 (Wed, 24 Sep 2014)

  Changed paths:
M S16-io.pod

  Log Message:
  ---
  Add IO::Path.slurp + some cosmetics


  Commit: f153027197334031df2c3f887ad4c180686620dd
  
https://github.com/perl6/specs/commit/f153027197334031df2c3f887ad4c180686620dd
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-24 (Wed, 24 Sep 2014)

  Changed paths:
M S32-setting-library/IO.pod

  Log Message:
  ---
  Part 3 of S32/IO revamp

Done IO::Path, IO::Handle still to come.


Compare: https://github.com/perl6/specs/compare/f75e1a39cd98...f15302719733

[perl6/specs] 12f5bf: Small rearranging

2014-09-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: 12f5bf654862fde67916f10d20b431802ce233cb
  
https://github.com/perl6/specs/commit/12f5bf654862fde67916f10d20b431802ce233cb
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-24 (Wed, 24 Sep 2014)

  Changed paths:
M S16-io.pod

  Log Message:
  ---
  Small rearranging




[perl6/specs] 5b8d70: Minor tweaks, had forgotten .spurt

2014-09-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: 5b8d701a5793b6597a311601c08a11b322b9bef5
  
https://github.com/perl6/specs/commit/5b8d701a5793b6597a311601c08a11b322b9bef5
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-24 (Wed, 24 Sep 2014)

  Changed paths:
M S16-io.pod

  Log Message:
  ---
  Minor tweaks, had forgotten .spurt


  Commit: 6ea01749b6fc57658b4422b10eca7568a718ff22
  
https://github.com/perl6/specs/commit/6ea01749b6fc57658b4422b10eca7568a718ff22
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-24 (Wed, 24 Sep 2014)

  Changed paths:
M S32-setting-library/IO.pod

  Log Message:
  ---
  Part 4 of S32/IO revamp

Finished with IO::Handle now.  Leaving the rest of the dragons for a later
time.  My head hurts.


Compare: https://github.com/perl6/specs/compare/f15302719733...6ea01749b6fc

[perl6/specs] 5741eb: Remove islink/readlink, add L (readlink) file test

2014-09-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: 5741ebe43b96bbbf74db2efc18c2cf82c639c3b3
  
https://github.com/perl6/specs/commit/5741ebe43b96bbbf74db2efc18c2cf82c639c3b3
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-23 (Tue, 23 Sep 2014)

  Changed paths:
M S16-io.pod

  Log Message:
  ---
  Remove islink/readlink, add L (readlink) file test




[perl6/specs] f75e1a: IO::Path.contents is ambiguous, use .dir instead

2014-09-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: f75e1a39cd9820da053bbd27a4e174f9b1b66061
  
https://github.com/perl6/specs/commit/f75e1a39cd9820da053bbd27a4e174f9b1b66061
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-24 (Wed, 24 Sep 2014)

  Changed paths:
M S16-io.pod

  Log Message:
  ---
  IO::Path.contents is ambiguous, use .dir instead




[perl6/specs] 7ddb1f: Fix alphabetical ordero

2014-09-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: 7ddb1f463d7d18abae73732e3fa3b47e2c314f3e
  
https://github.com/perl6/specs/commit/7ddb1f463d7d18abae73732e3fa3b47e2c314f3e
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-23 (Tue, 23 Sep 2014)

  Changed paths:
M S16-io.pod

  Log Message:
  ---
  Fix alphabetical ordero




[perl #76998] [BUG] capture variable does not parse for building a pair of the form :$a

2014-09-24 Thread Christian Bartolomaeus via RT
This now has a test in S05-capture/match-object.t (cmp. 
https://github.com/perl6/roast/commit/15cd5a89f8fcfac7d0a3ae13afbc2c790316c8ef)

All credits to timotimo, who explained both test and procedure to close this 
ticket: http://perl6advent.wordpress.com/2013/12/17/day-17-of-a-new-contributor/


[perl6/specs] 0c3475: Forget chmod() + some cosmetics

2014-09-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: 0c34759211b0502e210f87d9fc1c1074f14f7172
  
https://github.com/perl6/specs/commit/0c34759211b0502e210f87d9fc1c1074f14f7172
  Author: Elizabeth Mattijsen l...@dijkmat.nl
  Date:   2014-09-24 (Wed, 24 Sep 2014)

  Changed paths:
M S16-io.pod

  Log Message:
  ---
  Forget chmod() + some cosmetics




[perl #99658] sequence operator '...' timeout

2014-09-24 Thread Christian Bartolomaeus via RT
Actually I don't think S03 says that '1,3,5 ... 8' should act as '1,3,5 ... *'

As I understand it '1,3,5 ... 8' gives an infinite list with all even numbers. 
'1,3,5 ... *' also gives an infinite list with all even numbers -- but this one 
is lazy.

So there is a difference in behaviour: When assigning to an array with 'my @odd 
= 1,3,5 ... 8;' all elements of the sequence have to be computed and smart 
matched agains '8'. This match never results in True and therefore we get a 
timeout, finally. In the other case ('my @odd = 1,3,5 ... *') the sequence has 
no limit (quote from S03) and the assignment can be lazy e.g. the values don't 
have to be computed and smart matched against something.

S03 explicitly notes:  

 quote
If a limit is given, it must smartmatch exactly. If it does not, an infinite 
list results. For instance, since asymptotically approaching is not the same 
as equals, both of the following are infinite lists, as if you'd specified * 
for the limit rather than 0:

1,1/2,1/4 ... 0# like 1,1/2,1/4 ... *
1,-1/2,1/4 ... 0   # like 1,-1/2,1/4 ... *

Likewise, this is all of the even numbers:

my $end = 7;
0,2,4 ... $end

To catch such a situation, it is advised to write an inequality instead:

0,2,4 ...^ { $_  $end }
 quote end

One note to the original command
 my @odd = 1,3,5 ... 8; say @odd[^4]

We can get around the assignment to @odd and thereby stay lazy:
 (1,3,5 ... 8)[^4]## works
1 3 5 7
 (1,3,5 ... *)[^4]## same as above
1 3 5 7

So IMHO this is not a bug (and the ticket could be closed).