Talk:First-class functions: Difference between revisions

Line 106:
I have permission to use the module lambda.pl from U. Neumerkel (see discussion for Y Combinator).
For the link I fix it.--[[User:Trap D|Trap D]] 10:00, 3 May 2011
 
== The C hack: pointer ==
 
Normally I don't mind small semantics, but for the C hack code, naming it "pointer" is unnecessary at best, and possibly misleading. The reasons:
# In C, a function is just a block of machine instruction. When calling it, you take the address and push it onto stack; a function pointer is... the address of that block of instructions, which when called gets pushed onto the stack. There isn't much of a distinction here.
# The hack code doesn't return existing function pointers. The function body, a blob of machine code, really gets duplicated and stored somewhere, with some key stack variables modified according to the need, and that's why it's nasty and unportable. Calling the hack "function pointer" does not help understanding the situation. --[[User:Ledrug|Ledrug]] 05:25, 15 July 2011 (UTC)
Anonymous user