home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.icon
- Path: sparky!uunet!mercury.hsi.com!mlfarm!cs.arizona.edu!icon-group
- Date: Tue, 17 Nov 92 10:50:06 EST
- From: Paul_Abrahams@MTS.cc.Wayne.edu
- Message-ID: <528466@MTS.cc.Wayne.edu>
- Subject: Field names of a record type
- Lines: 12
-
- I recently proposed a builtin Icon function that would convert field names
- to their corresponding positions, as a way of constructing the desired
- second argument to sortf. That led me to the following question: does
- such a function need to be built in? Surprisingly, it seems so.
-
- Putting it another way: given the name of an Icon record type, is there a
- straightforward way to list the names of its fields in the same order
- as they appear in its definition? So far I haven't found one.
-
- Paul Abrahams
-
-
-