Generic creation

This technical note is the text of proposal submitted by ISE to the Nonprofit International Consortium for Eiffel (NICE). It describes a set of extensions to Eiffel.

This is a working document, precise for the most part but informal in places, and is currently under discussion.

Because the note followed earlier discussions within the language committee of NICE, it lacks the customary "introduction" and "rationale" parts explaining the purpose of the proposed extensions. The rationale and applications should, however, be immediately clear to any reader familiar with Eiffel: how to allow creation instructions (of the form !! x, or create x according to the proposed new syntax) when the type of x is a formal generic parameter.

All page numbers refer to the current definition of Eiffel: the book Eiffel: The Language.

1. Syntax

The production for Constraint, on page 201. which reads becomes with (see page 285) Creation_constraint == create Feature_list end