From: utzoo!decvax!cca!jfw.mit-ccc@Mit-Mc@sri-unix Newsgroups: net.unix-wizards Title: Re: C extensions Article-I.D.: sri-unix.3881 Posted: Wed Nov 3 05:37:57 1982 Received: Thu Nov 4 04:07:41 1982 Date: 27 Oct 1982 10:35:25-EDT The best way to hack the concept of char * table [] = { word1: "The first string", word2: "The second sting", ... }; is to declare an enum type just before (or after) the table, such that enum tableoffsets { word1,word2,... } will cause word1 to be 0, word2 to be 1, etc. This does not require a language extension, and also resembles features in other languages (consider PASCAL, where you can declare that an array's indices will ONLY be elements of an enumerated type, should you desire). John Woods jfw@ccc@mit-mc