Ruby and Python

Jeremy Hylton jeremy at alum.mit.edu
Mon Nov 20 10:36:17 EST 2000


In article <B63DFA7F.1738B%graham73 at telocity.com>,
  graham <graham73 at telocity.com> wrote:
> Jeremy Hylton
> > The normal definition of "first class" is an object that can be
named
> > and treated as data at runtime.  A first class object can be bound
to a
> > variable name, passed as an argument to a function, or returned
from a
> > function.  The term has nothing to do with scoping rules.
>
> So by this definition C has first class functions. Does it?
>
> graham

As /F has already pointed out, C's function pointers are a lot like
first-class functions, but they are somewhat limited.  You can't create
a function object inside another function and then return a pointer to
it.

Is there a reason you continue to disagree with all of us without
offering in response a definition of your own or some evidence that
anyone else uses it?

--
-- Jeremy Hylton, <http://www.python.org/~jeremy/>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list