aboutsummaryrefslogtreecommitdiff
path: root/samples/Logtalk
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2012-07-23 15:52:49 -0500
committerJoshua Peek <josh@joshpeek.com>2012-07-23 15:52:49 -0500
commit7b6caa0f6c7603aabb5e6ed657e24aaddbeafc78 (patch)
treeec0522eae75bb04ae73d28ae3f599682a2bfdaeb /samples/Logtalk
parent314f0e485227915931db361be14d308a210bedea (diff)
Rename samples subdirectories
Diffstat (limited to 'samples/Logtalk')
-rw-r--r--samples/Logtalk/foo.lgt9
1 files changed, 9 insertions, 0 deletions
diff --git a/samples/Logtalk/foo.lgt b/samples/Logtalk/foo.lgt
new file mode 100644
index 0000000..673fab2
--- /dev/null
+++ b/samples/Logtalk/foo.lgt
@@ -0,0 +1,9 @@
+% this is a Logtalk source file
+
+:- object(hello_world).
+
+ % the initialization/1 directive argument is automatically executed
+ % when the object is loaded into memory:
+ :- initialization((nl, write('********** Hello World! **********'), nl)).
+
+:- end_object.