Newsgroups: | comp.compilers |
From: | pardo@cs.washington.edu (David Keppel) |
Keywords: | types |
Organization: | Computer Science & Engineering, U. of Washington, Seattle |
References: | 92-02-085 92-02-104 |
Date: | Mon, 24 Feb 92 22:44:11 GMT |
>>[Procedure pointers, not procedures, are first class C objects.
>> In languages with 1st class procedures, you can create procedures,
>> not just pointers to them, at run time. -John]
In article 92-02-104 eric@tfs.COM (Eric Smith) writes:
>[Put a C compiler in the C library?]
That might be a good idea but it won't make procedures first class.
Consider structure assignment:
a = b // First-class
memcpy (b, a, sizeof(b)) // Second-class
It isn't clear that you can (meaningfully) copy code returned by the
C compiler, but even if you could it would be by a second-class
mechanism. All IMHO, of course.
;-D on ( Typed signatures? ) Pardo
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.