Main > Programming > Libraries >

Class::Classless 1.35

Class::Classless 1.35

Sponsored Links

Class::Classless 1.35 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.023 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 827
Date added: 2007-07-19
Publisher: Sean M. Burke

Class::Classless 1.35 description

Class::Classless is a Perl framework for classless OOP.

SYNOPSIS

use strict;
use Class::Classless;
my $ob1 = $Class::Classless::ROOT->clone;
$ob1->{NAME} = Ob1;
$ob1->{stuff} = 123;
$ob1->{Thing} = 789;

my $ob2 = $ob1->clone;
$ob2->{NAME} = Ob2;

printf "ob1 stuff: <%s>n", $ob1->{stuff};
printf "ob2 stuff: <%s>n", $ob2->{stuff};
printf "ob1 Thing: <%s>n", $ob1->{Thing};
printf "ob2 Thing: <%s>n", $ob2->{Thing};

$ob1->{METHODS}{zaz} = sub {
print "Zaz! on ", $_[0]{NAME}, "n";
};

$ob1->zaz;
$ob2->zaz;
$ob1->EXAMINE;
$ob2->EXAMINE;
This prints the following:
ob1 stuff: < 123 >
ob2 stuff: < 123 >
ob1 Thing: < 789 >
ob2 Thing: < >
Zaz! on Ob1
Zaz! on Ob2
< Class::Classless::X=HASH(0x200236f4) >
stuff, 123,
NAME, Ob1,
Thing, 789,
METHODS, { zaz, CODE(0x20068360) },
PARENTS, [ ROOT ],
< Class::Classless::X=HASH(0x2002cb48) >
stuff, 123,
NAME, Ob2,
METHODS, { },
PARENTS, [ Ob1 ],

In class-based OOP frameworks, methods are applicable to objects by virtue of objects belonging to classes that either provide those methods, or inherit them from classes that do.

In classless OOP frameworks (AKA delegation-and-prototypes frameworks), what methods an object is capable of is basically an attribute of that object. That is, in Perl terms: instead of methods being entries in the symbol table of the package/class the object belongs to, they are entries in a hash table inside the object. Inheritance is implemented not by having classes inheriting from other classes (via ISA lists), but by having objects inherit from other objects (via PARENTS lists).

In class-based OOP frameworks, you get new objects by calling constructors. In a classless framework, you get new objects by copying ("cloning") an existing object -- and the new clone becomes a child (inheritor) of the original object. (Where do you get the one original object? The language provides one, which has no parents, and which contains some general purpose methods like "clone".)

Class::Classless 1.35 Screenshot

Advertisements

Class::Classless 1.35 Keywords

Bookmark Class::Classless 1.35

Hyperlink code:
Link for forum:

Class::Classless 1.35 Copyright

WareSeeker periodically updates pricing and software information of Class::Classless 1.35 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Class::Classless 1.35 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Class::Declare is a Perl module created to declare classes with public, private and protected attributes and methods. Free Download
Class::Date provides a date datatype for Perl. Free Download
Class::Simple is a simple Object-Oriented Base Class. Free Download
Class::Adapter is a Perl implementation of the "Adapter" Design Pattern. Free Download
Class::Meta is a Perl class automation, introspection, and data validation. Free Download
Class::ArrayObjects is a Perl utility class for array based objects. Free Download
Class::Maker Perl module contains classes, reflection, schema, serialization, attribute- and multiple inheritance. Free Download
Class::Struct::FIELDS module combine Class::Struct, base and fields. Free Download