Get a new id for object and store it

Require: not has_object(object)

Property definitions

serialization $ SerializerCache :: new_id_for
	# 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

serialization $ DuplexCache :: new_id_for
	redef fun new_id_for(object)
	do
		var id = super
		received[id] = object
		return id
	end
lib/serialization/caching.nit:108,2--113,4