|
Revision 4662, 1.1 KB
(checked in by pmoura, 6 days ago)
|
|
Updated copyright notice.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | ================================================================ |
|---|
| 2 | Logtalk - Open source object-oriented logic programming language |
|---|
| 3 | Release 2.35.0 |
|---|
| 4 | |
|---|
| 5 | Copyright (c) 1998-2009 Paulo Moura. All Rights Reserved. |
|---|
| 6 | Logtalk is free software. You can redistribute it and/or modify |
|---|
| 7 | it under the terms of the "Artistic License 2.0" as published by |
|---|
| 8 | The Perl Foundation. Consult the "LICENSE.txt" file for details. |
|---|
| 9 | ================================================================ |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | To load this example and for sample queries, please see the SCRIPT.txt file. |
|---|
| 13 | |
|---|
| 14 | This folder contains an example that shows how to use a category to |
|---|
| 15 | explicitly complement an existing object (without modifying its source |
|---|
| 16 | code), thus providing functionality similar to Objective-C categories. |
|---|
| 17 | |
|---|
| 18 | The complemented objects need to be compiled with the flag "complements" |
|---|
| 19 | switched on. This is a less than ideal solution that was adapted in order |
|---|
| 20 | to both improve performance of code that doesn't use complementing categories |
|---|
| 21 | and to provide a solution for preventing the use of complementing categories |
|---|
| 22 | to break object encapsulation. |
|---|