SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Perl6-Attributes rpm build for : OpenSuSE. For other distributions click perl-Perl6-Attributes.

Name : perl-Perl6-Attributes
Version : 0.04 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 1.1 Date : 2015-11-20 20:26:53
Group : Development/Libraries/Perl Source RPM : perl-Perl6-Attributes-0.04-1.1.src.rpm
Size : 0.01 MB
Packager : (none)
Summary : Perl 6-like member variable syntax
Description :
I found myself annoyed when I wrote the following code in one of my recent
projects:

sub populate {
my ($self, $n) = AATT_;
for (1..$n) {
push AATT{$self->{organisms}}, Organism->new(rand($self->{width}), rand($self->{height}));
}
}

Three \'$self\'s in one line! And it\'s really not encoding any information,
it\'s just clutter that results from Perl\'s lack of _explicit_
object-oriented support. However, Using the magic of source filters, we can
now write it:

sub populate {
my ($self, $n) = AATT_;
for (1..$n) {
push AATT.organisms, Organism->new(rand($.width), rand($.height));
}
}

Perl6::Attributes takes the Perl 6 secondary sigil \'.\' and translates it
into a hash access on \'$self\'. No, it doesn\'t support other names for your
invocant (but it could very easily; I\'m just lazy), and no, it doesn\'t
support objects written by crazy people based on array, scalar, or (!) glob
references.

You still inflect the primary sigil, unlike in Perl 6. See the
Perl6::Variables manpage for a way to use Perl 6\'s uninflected sigils...
but don\'t expect it to work with this module.

There\'s also a nice little \"feature\" that you get for trading the ability
to name your variables the same with different sigils (by the way, you
can\'t do that). Say $self->{foo} is an array ref:

AATT.foo; # the array itself
$.foo; # the reference

Which means that even if you\'re using an array referentially, you can
usually avoid writing those pesky \'AATT{}\'s everywhere.

Perl6::Attributes now also translates \'./method\' and \'./method(args)\' to
\'$self-\'method> and \'$self-\'method(args)>.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/SLE_11_SP4/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(Perl6::Attributes)
perl-Perl6-Attributes

Requires :
rpmlib(CompressedFileNames) <= 3.0.4-1
perl = 5.10.0
rpmlib(VersionedDependencies) <= 3.0.3-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.10.0/Perl6
/usr/lib/perl5/vendor_perl/5.10.0/Perl6/Attributes.pm
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Perl6-Attributes
/usr/share/doc/packages/perl-Perl6-Attributes/README
/usr/share/man/man3/Perl6::Attributes.3pm.gz

 
ICM