| 183 | | number_codes(Next, Codes2), |
| 184 | | atom_codes(Atom2, Codes2), |
| 185 | | atom_concat(Functor, Atom2, Identifier), |
| 186 | | atom_concat(Identifier, Atom, Prefix), |
| 187 | | \+ {current_predicate(Prefix/_)}, |
| 188 | | asserta(instance_counter_(Next)), |
| | 180 | number_codes(Next, Codes), |
| | 181 | atom_codes(Atom, Codes), |
| | 182 | atom_concat(Base, Atom, Identifier), |
| | 183 | \+ current_object(Identifier), |
| | 184 | \+ current_category(Identifier), |
| | 185 | \+ current_protocol(Identifier), |
| | 186 | asserta(instance_counter_(Next)), |
| 192 | | functor(Identifier, Functor, Arity), |
| 193 | | number_codes(Arity, Codes), |
| 194 | | atom_codes(Atom, Codes), |
| 195 | | atom_concat(Functor, Atom, Prefix), |
| 196 | | \+ {current_predicate(Prefix/_)}. |
| 197 | | |
| 198 | | next_integer(N, N1) :- |
| 199 | | N1 is N + 1. |
| | 190 | \+ current_object(Identifier), |
| | 191 | \+ current_category(Identifier), |
| | 192 | \+ current_protocol(Identifier). |
| | 193 | |
| | 194 | next_integer(N, N). |