I've got the protocol:
:- protocol(person).
:- public([name/1,
age/1]).
:- end_protocol.
For example, I've made unknown number of objects by using create_object/4
, how can I get a number of them? It is not a problem to get their names by current_object/1
, but I need an integer!