Changeset 4526 for trunk/examples
- Timestamp:
- 10/21/08 09:08:54 (3 months ago)
- Location:
- trunk/examples/complements
- Files:
-
- 2 modified
-
complements.lgt (modified) (1 diff)
-
NOTES.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/complements/complements.lgt
r4522 r4526 30 30 setof(Predicate, ::current_predicate(Predicate), Predicates). 31 31 32 % define an alias for a predicate of the complemented object: 33 :- alias(employee, salary/1, income/1). 34 32 35 :- end_category. -
trunk/examples/complements/NOTES.txt
r4507 r4526 15 15 explicitly complement an existing object (without modifying its source 16 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 adopted 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.
