object
and store itRequire: not has_object(object)
# Get a new id for `object` and store it
#
# Require: `not has_object(object)`
fun new_id_for(object: Serializable): Int
do
var id = next_available_id
sent[object] = id
return id
end
lib/serialization/caching.nit:72,2--80,4
redef fun new_id_for(object)
do
var id = super
received[id] = object
return id
end
lib/serialization/caching.nit:108,2--113,4