RE: LISP-like expressions
Derek Parnell wrote:
>
> That is only one aspect of first-class objects. You still won't be able
> to create new routines at runtime and have them execute in the same
> address space as the application (eg. have them share variables). With
> using routine-id, you can only deal with routines that already exist at
> runtime. There is a convoluted method of doing this in WIndows/Linux
> environments, but it involves compiling a new routine as a shared
> library (eg. a Windows DLL) at runtime then loading that library, then
> running the routine - not a pretty method at all.
>
Not sure I understand. In a functional programming context, aren't any
new functions you make going to be built up from (combinations of)
existing functions & operators? You can do that with routine_id().
What kind of scenarios are you talking about?
|
Not Categorized, Please Help
|
|