Logtalk 2.21.6 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1175 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
10
Logtalk/examples/hello_world/NOTES
Normal file
10
Logtalk/examples/hello_world/NOTES
Normal file
@@ -0,0 +1,10 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.21.6
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
No self-respected programming language could do without a "Hello
|
||||
World" example!
|
||||
12
Logtalk/examples/hello_world/SCRIPT
Normal file
12
Logtalk/examples/hello_world/SCRIPT
Normal file
@@ -0,0 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.21.6
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% just load the example and check the output message:
|
||||
|
||||
| ?- logtalk_load(loader).
|
||||
...
|
||||
6
Logtalk/examples/hello_world/hello_world.lgt
Normal file
6
Logtalk/examples/hello_world/hello_world.lgt
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
:- object(hello_world).
|
||||
|
||||
:- initialization(write('Hello World!')).
|
||||
|
||||
:- end_object.
|
||||
4
Logtalk/examples/hello_world/loader.lgt
Normal file
4
Logtalk/examples/hello_world/loader.lgt
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
hello_world])).
|
||||
Reference in New Issue
Block a user