﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2831	Function Binding	anonymous		"Please create a function that can bind arguments to functions. The result of {{{Bind(f,1,2)}}} should be a function reference of {{{f}}} with an additional internal bound argument list {{{[1, 2]}}} (the internal list of bound arguments of normal function references would be empty). When calling {{{$boundF(3)}}}, the call shoud be transformed to {{{f(1,2,3)}}}.

Reason: Most functions expecting function references ({{{_ArrayDisplay}}}, last argument) don't call a special helper function instead of calling the passed function reference directly. That makes a general solution impossible. For each callback function a new function must be created, which is administratively expensive (compared to a simple function reference with bound arguments).
{{{
Func HandleActionCallback7 ($action, $direction)
	Return HandleAction ( _
		$HandleActionCallback7_objectToModify, _
		$action, _
		$direction)
EndFunc
}}}
There can be only as much callback functions as there are real functions. A function handling a callback called twice (the function, not the callback) would need at least two helper functions, and the logic to manage multiple callback functions. And if it's unknown how often the function is called..."	Feature Request	closed		AutoIt		None	Rejected	function binding	
