This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
siddhant@siddhant-PC ~/rakudo/install/bin | |
$ ./perl6 -v | |
This is perl6 version 2012.08-113-g32309a4 built on parrot 4.7.0 revision RELEASE_4_7_0-165-g29796c6 | |
siddhant@siddhant-PC ~/rakudo/install/bin | |
$ ./perl6 ~/doc/bin/p6doc Int | |
0 [main] perl6 9796 child_info_fork::abort: address space needed by 'nqp_dyncall_ops.dll' (0x720000) is already occupied | |
siddhant@siddhant-PC ~/rakudo/install/bin | |
$ ./perl6 ~/doc/bin/p6doc Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat error.pl | |
class foo { | |
has $.x; | |
} | |
my $obj = foo.new; | |
$obj.x = 42; | |
$ perl6 error.pl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
siddhant@siddhant-laptop:~/perl6 code$ cat class-point | |
use v6; | |
class Point { | |
has $.x; | |
has $.y; | |
has $.d; | |
method distance_from_origin { | |
$!d = sqrt($!x**2 + $!y**2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
siddhant@siddhant-laptop:~/perl6 code$ cat error.pl | |
use v6; | |
{ | |
siddhant@siddhant-laptop:~/perl6 code$ perl6 error.pl | |
===SORRY!=== | |
Unable to parse blockoid, couldn't find final '}' at line 5, near "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ panda install LWP::Simple | |
==> Fetching LWP::Simple | |
==> Building LWP::Simple | |
Compiling lib/LWP/Simple.pm | |
===SORRY!=== | |
Could not find MIME::Base64 in any of: /home/siddhant/.panda/src/LWP__Simple/blib/lib, /home/siddhant/.panda/src/LWP__Simple/lib, , /home/siddhant/.perl6/lib, /home/siddhant/rakudo/install/lib/parrot/4.5.0-devel/languages/perl6/lib | |
Any() | |
build stage failed for LWP::Simple: Failed building lib/LWP/Simple.pm | |
in sub indir at lib/Panda/Common.pm:15 | |
in method build at lib/Panda/Builder.pm:38 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
siddhant@siddhant-laptop:~/rakudo$ perl Configure.pl --gen-parrot | |
remote: Counting objects: 4, done. | |
remote: Compressing objects: 100% (1/1), done. | |
remote: Total 2 (delta 1), reused 2 (delta 1) | |
Unpacking objects: 100% (2/2), done. | |
From git://github.com/perl6/nqp | |
4019f2a..c7f76bc master -> origin/master | |
HEAD is now at fcc9a23... Implement attribute introspection in the non-:local case. | |
/home/siddhant/rakudo/install/bin/parrot is Parrot RELEASE_4_5_0. | |
Building NQP ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
use Test; | |
plan 98; | |
#L<S03/Autoincrement precedence> | |
=begin description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
siddhant@siddhant-laptop:~/rakudo$ make t/spec/S03-operators/overflow.t | |
t/spec/S03-operators/overflow.rakudo .. | |
1..98 | |
ok 1 - var incremented after post-autoincrement | |
ok 2 - during post-autoincrement return value is not yet incremented | |
ok 3 - var incremented after pre-autoincrement | |
ok 4 - during pre-autoincrement return value is incremented | |
ok 5 - simple assignment: $a = $a+1 | |
ok 6 - var decremented after post-autodecrement | |
ok 7 - during post-autodecrement return value is not yet decremented |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
my $bootstrap = open "bootstrap.sh", :w; | |
$bootstrap.say: qq:to 'END'; | |
#!/bin/sh | |
PWD=`pwd` | |
mono $*EXECUTABLE_NAME -I\$PWD/ext -I\$PWD/lib bin/panda-niecza install . | |
END | |
$bootstrap.close; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------- | |
# LWP::Simple for Perl 6 | |
# ---------------------- | |
use v6; | |
# use MIME::Base64; | |
# use URI; | |
class LWP::Simple:auth<cosimo>:ver<0.08>; | |
our $VERSION = '0.08'; |