root/trunk/examples/viewpoints/NOTES.txt

Revision 4662, 1.3 KB (checked in by pmoura, 5 days ago)

Updated copyright notice.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1================================================================
2Logtalk - Open source object-oriented logic programming language
3Release 2.35.0
4
5Copyright (c) 1998-2009 Paulo Moura.        All Rights Reserved.
6Logtalk is free software.  You can redistribute it and/or modify
7it under the terms of the "Artistic License 2.0" as published by
8The Perl Foundation. Consult the "LICENSE.txt" file for details.
9================================================================
10
11
12To load this example and for sample queries, please see the SCRIPT.txt file.
13
14Example adapted from the chapter "Classifying Prototype-Based Programming
15Languages" by Christophe Dony, Jacques Malenfant, and Daniel Bardou, found
16on the book "Prototype-Based Programming - Concepts, Languages, and
17Applications" published by Springer.
18
19
20This prototype programming example illustrates how we can do both property
21sharing and value sharing in Logtalk by calling the built-in predicate
22modification methods asserta/1, assertz/1, and retract/1 either in the
23context of "this" or in the context of "self".
24
25In this example we have a prototype, joePerson, containing general data on
26Joe such as its age, name, or address, and four descendant prototypes or
27viewpoints, joeSportsman, joeEmployee, joeChessPlayer, and joeFilmEnthusiast.
28Each descendant contains data related to a particular viewpoint about Joe.
Note: See TracBrowser for help on using the browser.