Re: Reference to "First-Class Data Type"

spot@CS.CMU.EDU (Scott Draves)
Mon, 24 Feb 92 21:16:17 GMT

          From comp.compilers

Related articles
Reference to "First-Class Data Type" reid@vtopus.cs.vt.edu (1992-02-18)
Re: Reference to "First-Class Data Type" moss@cs.umass.edu (1992-02-19)
Re: Reference to "First-Class Data Type" stachour@sctc.com (1992-02-20)
Re: Reference to "First-Class Data Type" jwb@cepmax.ncsu.edu (1992-02-20)
Re: Reference to "First-Class Data Type" mab@wdl39.wdl.loral.com (1992-02-20)
Re: Reference to "First-Class Data Type" eric@tfs.COM (1992-02-22)
Re: Reference to "First-Class Data Type" spot@CS.CMU.EDU (1992-02-24)
Re: Reference to "First-Class Data Type" pardo@cs.washington.edu (1992-02-24)
Re: Reference to "First-Class Data Type" glew@pdx007.intel.com (1992-02-25)
Re: Reference to "First-Class Data Type" scott@cs.rochester.edu (1992-02-25)
Re: Reference to "First-Class Data Type" rjbodkin@theory.lcs.mit.edu (Ronald Bodkin) (1992-02-25)
Re: Reference to "First-Class Data Type" pmetzger@shearson.com (1992-02-26)
Re: Reference to "First-Class Data Type" gaal@thesee.inria.fr (1992-03-03)
| List of all articles for this month |
Newsgroups: comp.compilers
From: spot@CS.CMU.EDU (Scott Draves)
In-Reply-To: eric@tfs.COM's message of 22 Feb 92 22:06:53 GMT
Keywords: types, design
Organization: School of Computer Science, Carnegie Mellon University
References: 92-02-085 92-02-104
Date: Mon, 24 Feb 92 21:16:17 GMT

> On 22 Feb 92 22:06:53 GMT, eric@tfs.COM (Eric Smith) said:
john> In other languages with 1st class procedures, you can create
john> procedures, not just pointers to them, at run time.
Eric> So why not just put a C compiler in the C library? Call it with a
Eric> string of source code and have it return a function pointer.
Eric> Would that satisfy the definition of first class?


Not in a practical sense. Creating procedures in a higher order language
should be cheap enough that programmers can use it with impunity. The
above scheme is so expensive that it would never be used, except in
desperate circumstances.
--
Scott Draves, spot@cs.cmu.edu
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.