diff options
Diffstat (limited to 'samples/Logtalk')
| -rw-r--r-- | samples/Logtalk/foo.lgt | 9 |
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. |
