home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / icon / 528 < prev    next >
Encoding:
Text File  |  1992-11-17  |  763 b   |  21 lines

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