I have a protocol students:
:- protocol(student).
:- public([
name/1,
surname/1,
studies/1,
marks/1
]).
:- end_protocol.
Now I want to make an object which name is an ID (Integer), but when I'm trying to do this with create_object(18342, [implements(student)], [], [name(john), surname(smith), studies(it), marks(ok)]).
swilgt gives mi the error:
ERROR: Type error: 'object_identifier' expected, found '18342' (an integer)
Ofc I could use quotation marks, but I don't want to. Is there an option to use integer as a name, or have I use string and add id/1 into the protocol?