|
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 | ================================================================ |
|---|
| 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 | % start by loading the example: |
|---|
| 13 | |
|---|
| 14 | | ?- logtalk_load(diamonds(loader)). |
|---|
| 15 | ... |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | % first variant of the "diamond problem", defined in the "diamond1" source file: |
|---|
| 19 | |
|---|
| 20 | | ?- d1::m. |
|---|
| 21 | |
|---|
| 22 | Redefinition of method m/0 in object b1 |
|---|
| 23 | yes |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | % second variant of the "diamond problem", defined in the "diamond2" source file: |
|---|
| 27 | |
|---|
| 28 | | ?- d2::m. |
|---|
| 29 | |
|---|
| 30 | Redefinition of method m/0 in object c2 |
|---|
| 31 | yes |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | % third variant of the "diamond problem", defined in the "diamond3" source file: |
|---|
| 35 | |
|---|
| 36 | | ?- d3::b3_m. |
|---|
| 37 | |
|---|
| 38 | Redefinition of method m/0 in object b3 |
|---|
| 39 | yes |
|---|
| 40 | |
|---|
| 41 | | ?- d3::c3_m. |
|---|
| 42 | |
|---|
| 43 | Redefinition of method m/0 in object c3 |
|---|
| 44 | yes |
|---|
| 45 | |
|---|
| 46 | | ?- d3::m. |
|---|
| 47 | |
|---|
| 48 | Redefinition of method m/0 in object b3 |
|---|
| 49 | yes |
|---|