Logtalk 2.15.6 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@970 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
:- info([
|
||||
author is 'Paulo Moura',
|
||||
version is 1.0,
|
||||
date is 2003/2/3,
|
||||
version is 1.1,
|
||||
date is 2004/1/8,
|
||||
comment is 'Generic polygon.']).
|
||||
|
||||
|
||||
@@ -37,16 +37,4 @@
|
||||
argnames is ['Perimeter']]).
|
||||
|
||||
|
||||
:- public(side/1).
|
||||
|
||||
:- mode(side(?atom), zero_or_one).
|
||||
|
||||
:- info(side/1, [
|
||||
comment is 'Polygon side length.',
|
||||
argnames is ['Length']]).
|
||||
|
||||
|
||||
side(1). % default side length
|
||||
|
||||
|
||||
:- end_object.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
:- object(regular_polygon,
|
||||
instantiates(abstract_class),
|
||||
specializes(polygon)).
|
||||
@@ -5,11 +6,23 @@
|
||||
|
||||
:- info([
|
||||
author is 'Paulo Moura',
|
||||
version is 1.0,
|
||||
date is 2003/2/3,
|
||||
version is 1.1,
|
||||
date is 2004/1/8,
|
||||
comment is 'Generic regular polygon.']).
|
||||
|
||||
|
||||
:- public(side/1).
|
||||
|
||||
:- mode(side(?atom), zero_or_one).
|
||||
|
||||
:- info(side/1, [
|
||||
comment is 'Regular polygon side length.',
|
||||
argnames is ['Length']]).
|
||||
|
||||
|
||||
side(1). % default side length
|
||||
|
||||
|
||||
perimeter(Perimeter) :-
|
||||
::nsides(Number),
|
||||
::side(Side),
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
:- info([
|
||||
author is 'Paulo Moura',
|
||||
version is 1.0,
|
||||
date is 2003/2/3,
|
||||
version is 1.1,
|
||||
date is 2004/1/8,
|
||||
comment is 'Generic polygon.']).
|
||||
|
||||
|
||||
@@ -36,16 +36,4 @@
|
||||
argnames is ['Perimeter']]).
|
||||
|
||||
|
||||
:- public(side/1).
|
||||
|
||||
:- mode(side(?atom), zero_or_one).
|
||||
|
||||
:- info(side/1, [
|
||||
comment is 'Polygon side length.',
|
||||
argnames is ['Length']]).
|
||||
|
||||
|
||||
side(1). % default side length
|
||||
|
||||
|
||||
:- end_object.
|
||||
|
||||
@@ -1,14 +1,27 @@
|
||||
|
||||
:- object(regular_polygon,
|
||||
extends(polygon)).
|
||||
|
||||
|
||||
:- info([
|
||||
author is 'Paulo Moura',
|
||||
version is 1.0,
|
||||
date is 2003/2/3,
|
||||
version is 1.1,
|
||||
date is 2004/1/8,
|
||||
comment is 'Generic regular polygon.']).
|
||||
|
||||
|
||||
:- public(side/1).
|
||||
|
||||
:- mode(side(?atom), zero_or_one).
|
||||
|
||||
:- info(side/1, [
|
||||
comment is 'Regular polygon side length.',
|
||||
argnames is ['Length']]).
|
||||
|
||||
|
||||
side(1). % default side length
|
||||
|
||||
|
||||
perimeter(Perimeter) :-
|
||||
::nsides(Number),
|
||||
::side(Side),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
:- object(square,
|
||||
extends(regular_polygon)).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user