Talk:First-class functions: Difference between revisions

Task Name change
(Task Name change)
Line 68:
So Autohotkey is parsing a string representation of the functions and eval-ing the result? If so then it gets the answer, but like C, wouldn't 'normally' be considered as having first class functions. --[[User:Paddy3118|Paddy3118]] 18:10, 5 June 2009 (UTC)
:: AutoHotkey doesn't really support eval natively either. I just made a generic "compose" function, called map. It is overloaded to create a composition, and then funcall those compositions. AutoHotkey internal data structures include functions are documented in [http://www.autohotkey.com/forum/topic26300.html LowLevel] and can be created and manipulated as any other data. I think to do this in C, you just have to manipulate its internal data structures, which is machine code. See [[wp:Self-modifying_code]], Dynamic Machine Code Generation in [http://code.google.com/apis/v8/design.html v8 javascript] and AutoHotkey machine code functions [http://www.autohotkey.com/forum/topic21172.html script] --[[User:Tinku99|Tinku99]] 18:48, 5 June 2009 (UTC)
==Task Name==
I think the name of this task should be modified to: <br>
'''Apply the compose of a function and its inverse to a list'''
<br>or<br>
'''operate on a function''': change its name, parameter count or something, to demonstrate you can dissect it like any first class data object.
Namely, apply the concept of [[wp:Duck_typing]] to a function object.
Anonymous user