Skip to content

Commit

Permalink
- Version 2.12 is here!
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Dec 10, 2015
1 parent 6c45643 commit 98eb09f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"provides" : {
"Sidef" : {
"file" : "lib/Sidef.pm",
"version" : "2.11"
"version" : "2.12"
},
"Sidef::Convert::Convert" : {
"file" : "lib/Sidef/Convert/Convert.pm"
Expand Down Expand Up @@ -213,6 +213,6 @@
"http://dev.perl.org/licenses/"
]
},
"version" : "2.11",
"version" : "2.12",
"x_serialization_backend" : "JSON::PP version 2.27300"
}
4 changes: 2 additions & 2 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name: Sidef
provides:
Sidef:
file: lib/Sidef.pm
version: '2.11'
version: '2.12'
Sidef::Convert::Convert:
file: lib/Sidef/Convert/Convert.pm
Sidef::Deparse::Perl:
Expand Down Expand Up @@ -143,5 +143,5 @@ requires:
utf8: '0'
resources:
license: http://dev.perl.org/licenses/
version: '2.11'
version: '2.12'
x_serialization_backend: 'CPAN::Meta::YAML version 0.016'
9 changes: 8 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@ TODO list for Sidef
General:
* improve the OO system

Classes:
* implement roles (from Perl 6) and add the `does` trait for classes
(http://doc.perl6.org/language/objects#Roles)

Blocks:
* find a better way to implement the `next` and `last` statements

Method/functions:
* implement the `is export` trait for methods (maybe)
* implement the `is export` trait for functions and classes (maybe)
2 changes: 1 addition & 1 deletion lib/Sidef.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Sidef {

use 5.014;
our $VERSION = '2.11';
our $VERSION = '2.12';

our $SPACES = 0; # the current number of spaces
our $SPACES_INCR = 4; # the number of spaces incrementor
Expand Down
9 changes: 6 additions & 3 deletions lib/Sidef/Deparse/Perl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -954,12 +954,15 @@ HEADER
my $raddr = refaddr($obj->{gather});
$code = "do { push \@_$raddr," . $self->deparse_args($obj->{expr}) . "; \$_$raddr\[-1] }";
}
elsif ($ref eq 'Sidef::Types::Block::For') {
## ok
}
elsif ($ref eq 'Sidef::Types::Block::Try') {
$code = $ref . '->new';
}
elsif ($ref eq 'Sidef::Variable::Ref') {
## ok
}
elsif ($ref eq 'Sidef::Types::Block::For') {
## ok
}
elsif ($ref eq 'Sidef::Types::Block::Break') {
$code = 'last';
}
Expand Down

0 comments on commit 98eb09f

Please sign in to comment.