create_protocol/3
create_protocol(Identifier, Relations, Directives)Creates a new, dynamic, protocol.
create_protocol(+protocol_identifier, +list, +list)
- One of the predicate arguments is a variable:
instantiation_error
- Identifier is not a valid protocol identifier:
type_error(protocol_identifier, Identifier)
- Identifier is already in use:
permission_error(replace, category, Identifier)
permission_error(replace, object, Identifier)
permission_error(replace, protocol, Identifier)
- Relations is neither a variable nor a list:
type_error(list, Relations)
- Directives is neither a variable nor a list:
type_error(list, Directives)
| ?- create_protocol(foo, [extends(bar)], [public(foo/1)]).