Perl6::Classes 0.22 |
Date Added: June 04, 2010 | Visits: 211 |
|
||||||||
|
Perl6::Classes project contains first class classes in Perl 5. SYNOPSIS use Perl6::Classes; class Composer { submethod BUILD { print "Giving birth to a new composern" } method compose { print "Writing some music...n" } } class ClassicalComposer is Composer { method compose { print "Writing some muzak...n" } } class ModernComposer is Composer { submethod BUILD($) { $.length = shift } method compose() { print((map { int rand 10 } 1..$.length), "n") } has $.length; } my $beethoven = new ClassicalComposer; my $barber = new ModernComposer 4; my $mahler = ModernComposer->new(400); $beethoven->compose; # Writing some muzak... $barber->compose # 7214 compose $mahler; # 89275869347968374698756.... Perl6::Classes allows the creation of (somewhat) Perl 6-style classes in Perl 5. The following features are currently supported: subs, methods, and submethods And their respective scoping rules. Attributes Which are available through the has keyword, and look like $.this. Inheritance Both single and multiple inheritance are available through the is keyword. Signatures Signatures on methods, subs, and submethods are supported, but just the Perl 5 kind. Data hiding Using the public, protected, and private traits, you can enforce (run-time) data hiding. This is not supported on attributes, which are always private. Anonymous classes That respect closures. You can now nest them inside methods of other classes, even other anonymous ones! The Perl6::Classes module augments Perls syntax with a new declarator: class. It offers the advantage over Perls standard OO mechanism that it is conceptually easier to see (especially for those from a C++/Java background). It offers the disadvantage, of course, of being less versatile..
|
| License: Freeware | Size: 7.17 KB |
|
Libraries
-
NodeXL Class Libraries 1.0.1.194 Beta
The NodeXL class libraries were designed to help display network graphs in .NET applications. To include a NodeXL network graph in a Windows Forms application, unzip the Zip file into any directory, then see the "NodeXLControl" topic in the... |
||
|
Libraries
-
GNU Classpath 0.95
GNU Classpath (essential libraries for Java) is a project to create free core class libraries for use with virtual machines and compilers for the Java programming language. GNU Classpath project includes all native methods and core classes... |
6.5 MB | |
|
Libraries
-
Classeine::Sdk 0.0.3.0-b0004
Classeine::Sdk project is a set of general purpose class libraries written in C++ for NetBSD.. |
51.2 KB | |
|
Libraries
-
IBiz QuickBooks Integrator 3.1.2008
IBiz QuickBooks Integrator is a suite of class libraries and PHP extensions for Internet-enabled QuickBooks (QBXML) integration. It provides components for facilitating tasks like adding/updating/retrieving customer info, vendor/employee info,... |
829.44 KB | |
|
Programming
-
Portable Object Compiler 0.2.2
Portable Object Compiler project consists of a set of Objective-C class libraries and a precompiler (translator) that generates plain C code.. |
839.68 KB | |
|
Science
-
Nuclear Simulation Java Class Libraries rc
The class libraries here provide infrastructure for creating simulations of low energy nuclear physics experiments, as well as some useful working programs that do simple simulations and analysis of experiments performed with magnetic spectrographs. |
1.3 MB | |
|
Science
-
StrBio java class libraries b.1.2
Java class libraries for structural biology development: includes protein format conversion tool, printf-based text formatting, Pred2ary secondary structure prediction, neural net library, Hooke-Jeeves global optimizer, and misc. math & statistics. |
12.66 MB | |
|
Libraries
-
Class::Tangram 1.57
Class::Tangram is a Perl module for tangram-friendly classes, DWIM attributes. SYNOPSIS package MyObject; use base qw(Class::Tangram); our $fields = { int => [ qw(foo bar) ], string => [ qw(baz quux) ] }; package main; my $object =... |
50.18 KB | |
|
Libraries
-
Class::Agreement 0.02
Class::Agreement is a Perl module that add contracts to your Perl classes easily. SYNOPSIS package SomeClass; use Class::Agreement; # use base Class::Accessor or Class::MethodMaker, # or roll your own: sub new { ... } invariant { my... |
27.65 KB | |
|
Libraries
-
Class::Observable 1.04
Class::Observable is a Perl module that allows other classes and objects to respond to events in yours. SYNOPSIS # Define an observable class package My::Object; use base qw( Class::Observable ); # Tell all classes/objects observing this... |
10.24 KB |
|
Programming
-
RailsTidy 0.1
RailsTidy project is a plugin for Ruby On Rails.. |
11.26 KB | |
|
Programming
-
Strings edit 1.9
Strings edit is a library that provides I/O facilities for integer, floating-point, Roman numbers, and strings. Both input and output subroutines support string pointers for consequent stream processing. The output can be aligned in a fixed size... |
54.27 KB | |
|
Programming
-
BScript 0.3
BScript is a (yet another) BASIC interpreter. It is free software and open-sourced, licensed under the terms of the GNU General Public License version 2 or later. You can use BScript to teach BASIC to your students, write understandable shell... |
112.64 KB | |
|
Programming
-
Kits JavaScript Brainf*ck Interpreter 0.01
Kits JavaScript Brainf*ck Interpreter is a rather fast interpreter for the Brainf*ck esoteric programming language.. Kit's JavaScript Brainfuck Interpreter v0.01 |
5.12 KB | |
|
Programming
-
dis6502 0.12
dis6502 is a flow-tracing disassembler for the 6502, originally written by Robert Bond and supporting Atari binary files. Robert posted dis6502 to the Usenet newsgroup net.sources on 9-Oct-1986, and to comp.sources.unix 7-Jun-1988. Udi... |
19.46 KB | |
|
Libraries
-
Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;... |
8.19 KB | |
|
Libraries
-
sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also... |
10.24 KB | |
|
Libraries
-
App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>... |
54.27 KB | |
|
Libraries
-
PDL::Graphics::TriD 2.4.3
PDL::Graphics::TriD is a PDL 3D interface. SYNOPSIS use PDL::Graphics::TriD; # After each graph, let the user rotate is and # wait for him to press q, then make new graph line3d($coords); # $coords = (3,n,...) line3d($coords,$colors); #... |
2.1 MB | |
|
Libraries
-
SmartColorWell 1.2
SmartColorWell is a cross-platform open-source ColorWell class for REALbasic 4 or greater. The SmartColorWell control stores a color value and displays that color in a simulated BevelButton that when pressed allows the user to change the color... |
21.5 KB |
