class PP_VARIABLE_NAME_SEQUENCE

(source code)

Description

Numbered variable name sequence

note
	description: "Numbered variable name sequence"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2017 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2018-09-20 11:35:14 GMT (Thursday 20th September 2018)"
	revision: "6"

deferred class
	PP_VARIABLE_NAME_SEQUENCE

feature {NONE} -- Implementation

	new_name: ZSTRING
		do
			Result := name_template #$ inserts
		end

	inserts: TUPLE
		-- variables to be inserted into `new_name'
		do
			Result := [count]
		end

	name_template: ZSTRING
		deferred
		ensure then
			valid_place_holder_count: Result.occurrences ('%S') = inserts.count
		end

feature -- Measurement

	count: INTEGER
		deferred
		end
end