Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!star.cs.vu.nl!jos@cs.vu.nl From: jos@cs.vu.nl (Jos Warmer) Newsgroups: comp.lang.eiffel Subject: indexing clause Message-ID: <5994@star.cs.vu.nl> Date: 16 Mar 90 11:14:29 GMT Sender: news@cs.vu.nl Organization: Fac. Wiskunde & Informatica, VU, Amsterdam Lines: 30 The indexing clause accepts only elementary items (integers, identifiers, etc..) sepatrated by commas. It does not accept strings, they are probably not elementary. However, the restriction to identifiers and/or integers is sometimes very awkward. For example, I want one of the indexes to be the revision number. I use rcs for revision control. The revision is automatically given by rcs, in a predefined format. Take for example class index: indexing Author : Jos, Warmer revision: "$,Revision: 1.2 $" class INDEX feature end; Also, I don't like to write my name with an underscore in it as Jos_Warmer, so I might rather use it as a string "Jos Warmer". Is there a strong reason for not allowing strings in the index clause ? I would very much like to use them. Jos Warmer -- Jos Warmer jos@cs.vu.nl ...uunet!mcvax!cs.vu.nl!jos