RosettaCodeData/Task/Call-an-object-method/Logtalk/call-an-object-method-1.logtalk

11 lines
207 B
Text
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
% avoid infinite metaclass regression by
% making the metaclass an instance of itself
:- object(metaclass,
instantiates(metaclass)).
:- public(me/1).
me(Me) :-
self(Me).
:- end_object.