Chapter 6. Objects

     

Objects are encapsulated chunks of data and functionality. Over the years a host of concepts have sprung up around objects, such as data abstraction, code reuse, encapsulation, single and multiple inheritance, composition, delegation, mixins , polymorphism, and multiple dispatch. Every language with object-oriented syntax selects a subset of these ideas and combines them in different ways. With Perl 6 we want to provide a cleaner and simpler syntax for working with objects, but we also want to support a larger set of object-oriented ideas. Does that sound impossible ? The solution is a classically Perl-ish one: make the easy things easy and the hard things possible.

With the release of Apocalypse 12, the syntax in this chapter is fairly solid, though it's still likely to change somewhat before the final implementation. This chapter is only an introduction to the concepts. For complete coverage you should read the Apocalypse itself.



Perl 6 and Parrot Essentials
Perl 6 and Parrot Essentials, Second Edition
ISBN: 059600737X
EAN: 2147483647
Year: 2003
Pages: 116

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net