Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon

Logtalk

Logtalk - Programming language

< >

Logtalk is a programming language created in 1998 by Paulo Moura.

#900on PLDB 25Years Old 231Users
0Books 4Papers 65Repos

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...


Example from hello-world:
write('Hello World')
Example 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 from Wikipedia:
?- my_first_object::p2. ERROR: error(permission_error(access, private_predicate, p2), my_first_object::p2, user)

Language features

Feature Supported Token Example
Binary Literals
Hexadecimals
Octals
Strings '
'Hello world'
Print() Debugging write
Multiple Inheritance
Comments
Semantic Indentation X

Publications about Logtalk from Semantic Scholar

title authors year citations influentialCitations
High-Level Multi-threading Programming in Logtalk Paulo Moura and P. Crocker and Paulo Nunes 2008 13 1
Programming Patterns for Logtalk Parametric Objects Paulo Moura 2009 12 1
From Plain Prolog to Logtalk Objects: Effective Code Encapsulation and Reuse Paulo Moura 2009 7 1
High Level Thread-Based Competitive Or-Parallelism in Logtalk Paulo Moura and Ricardo Rocha and S. Madeira 2009 5 0
pan.html · logtalk.html · mech-lang.html

View source

- Build the next great programming language · Search · v2023 · Day 208 · Docs · Acknowledgements · Traffic · Traffic Today · Mirrors · GitHub · feedback@pldb.com