Logtalk is an actively used programming language created in 1998. Logtalk is an object-oriented logic programming language that extends and leverages the Prolog language with a feature set suitable for programming in the large. It provides support for encapsulation and data hiding, separation of concerns and enhanced code reuse. Logtalk uses standard Prolog syntax with the addition of a few operators and directives. Read more on Wikipedia...
- Logtalk ranks in the top 10% of languages
- the Logtalk website
- the Logtalk wikipedia page
- Logtalk first appeared in 1998
- file extensions for Logtalk include lgt and logtalk
- the Logtalk team is on twitter
- See also: prolog, smalltalk, objective-c, swi-prolog, mercury, oz, visual-prolog
- Have a question about Logtalk not answered here? Email me and let me know how I can help.
Example code from Linguist:
% 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.
Example code from Wikipedia:
?- my_first_object::p2. ERROR: error(permission_error(access, private_predicate, p2), my_first_object::p2, user)
Last updated February 18th, 2020