Not Quite Perl

2012-04-03 Thread Daniel Carrera
Hello, I've been reading a little about NQP (Not Quite Perl). I was wondering if NQP is part of the Parrot project, or if it is an independent spec. I'm wondering if a program written in NQP will be faster in general, or faster under Rakudo/Parrot, or not fast at all. Cheers, Daniel. -- I'm not

Re: Not Quite Perl

2012-04-03 Thread Moritz Lenz
(follow-up to perl6-compil...@perl.org) Am 03.04.2012 10:02, schrieb Daniel Carrera: I've been reading a little about NQP (Not Quite Perl). I was wondering if NQP is part of the Parrot project, or if it is an independent spec. NQP exists in several versions. The earliest version lived in the p

The "=" operator and context

2012-04-03 Thread Daniel Carrera
Hello. We are all familiar with this: (1..10).WHAT # => Range() @foo = 1..10; @foo.WHAT # => Array() When you assign a range to @foo, the result is an array. Something similar happens, for example, if you assign a scalar to @foo... The context of the assignment causes Perl 6 to convert

Re: The "=" operator and context

2012-04-03 Thread Moritz Lenz
Am 03.04.2012 17:10, schrieb Daniel Carrera: (1..10).WHAT # => Range() @foo = 1..10; @foo.WHAT # => Array() When you assign a range to @foo, the result is an array. Something similar happens, for example, if you assign a scalar to @foo... The context of the assignment causes Perl 6 to

Re: The "=" operator and context

2012-04-03 Thread Daniel Carrera
On 3 April 2012 17:24, Moritz Lenz wrote: > You can, very nearly. You just need to write > > my @vec is Vector; > > because you really want to change the type of the container, not just of the > contents (my Vector @vec would be an array containing Vector objects). Another option might be to jus

Re: The "=" operator and context

2012-04-03 Thread Moritz Lenz
On 04/03/2012 08:24 PM, Daniel Carrera wrote: > On 3 April 2012 17:24, Moritz Lenz wrote: >> You can, very nearly. You just need to write >> >> my @vec is Vector; >> >> because you really want to change the type of the container, not just of the >> contents (my Vector @vec would be an array contai

Re: The "=" operator and context

2012-04-03 Thread Daniel Carrera
On 3 April 2012 20:38, Moritz Lenz wrote: > which version of Rakudo are you using? (I've tried on the last > development version from git) Rakudo Star 2012.02 % perl6 --version This is perl6 version 2012.02 built on parrot 4.1.0 revision 0 >> Hmm...  So you'd have to mess with the STORE method

[perl6/specs] 765810: replaced $*OSNAME which is long gone

2012-04-03 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 7658104d48f7400089a8be66e431632e79e7f2cf https://github.com/perl6/specs/commit/7658104d48f7400089a8be66e431632e79e7f2cf Author: Herbert Breunung Date: 2012-04-03 (Tue, 03 Apr 2012) Changed paths: M S

[perl6/specs] 6ef69b: pod vars are now lowercase as seen in 3e1a9a5a576b...

2012-04-03 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 6ef69b98d8afb6e33a271a466fb8e1beb7142eb8 https://github.com/perl6/specs/commit/6ef69b98d8afb6e33a271a466fb8e1beb7142eb8 Author: Herbert Breunung Date: 2012-04-03 (Tue, 03 Apr 2012) Changed paths: M S