Logtalk 2.16.0 release files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1014 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
21
Logtalk/examples/operators/double.lgt
Normal file
21
Logtalk/examples/operators/double.lgt
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
:- object(double).
|
||||
|
||||
|
||||
:- info([
|
||||
version is 1.0,
|
||||
author is 'Paulo Moura',
|
||||
date is 2004/2/16,
|
||||
comment is 'Contains a simple table of facts for testing operator handling code.']).
|
||||
|
||||
:- public(double/2).
|
||||
|
||||
:- op(500, xfx, double).
|
||||
|
||||
|
||||
1 double 2.
|
||||
2 double 4.
|
||||
3 double 6.
|
||||
|
||||
|
||||
:- end_object.
|
Reference in New Issue
Block a user