root/trunk/examples/classvars/NOTES.txt

Revision 4662, 1.1 KB (checked in by pmoura, 6 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
14This folder contains an example that shows how to implement class variables
15as defined in Smalltalk. The name shared instance variables is however much
16more accurate. In systems like Logtalk, which enables the use of explicit
17metaclasses, true class variables are just the class (as an object) own
18instance variables!
19
20This example defines a root class (root) and three instances (instance1,
21instance2, and instance3). The root class defines a shared instance variable
22(using a dynamic predicate) and the setter and getter methods which implement
23the variable sharing behavior.
Note: See TracBrowser for help on using the browser.