HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Lambda?

06-23-2006, 11:11 PM#1
The)TideHunter(
Ok, i'v heard about AIAndy and something to do with Lambda.
Can somebody please explain what Lambda is?
And the 'special thing' AIAndy did a while back, that people have talked about.

This is a oldish thread that got me thinking about what it could be:
http://wc3campaigns.net/showthread.p...mbda%2C+AIAndy
(I'v hightlighted AIAndy and lambda)

Thanks in advance
06-24-2006, 12:18 AM#2
Alevice
It probably has to do with Lambda Calculus
06-24-2006, 12:39 AM#3
emjlr3
isnt lambda usually wavelength? atleast in physics, duno what that would have to do with Wc though
06-24-2006, 02:03 AM#4
PipeDream
It's a function that creates a new function. The point is twofold. We have lexical scoping so that if we reference a variable within the lambda that exists outside, it captures that value, so we can do things like object orientation. We can also pass these new functions around so that we can write generic operators like sort. Blizzard, of course, uses function passing to implement triggers and timers. The only thing we're missing is that lexical scoping and variable capturing.
06-24-2006, 11:53 AM#5
The)TideHunter(
Quote:
Originally Posted by PipeDream
It's a function that creates a new function. The point is twofold. We have lexical scoping so that if we reference a variable within the lambda that exists outside, it captures that value, so we can do things like object orientation. We can also pass these new functions around so that we can write generic operators like sort. Blizzard, of course, uses function passing to implement triggers and timers. The only thing we're missing is that lexical scoping and variable capturing.

But isent that impossible? Because functions need to be declared before Map Init in Jass dont they?
06-24-2006, 12:43 PM#6
PipeDream
Yeah, exactly. So we have to hand compile them down to things like objects which we can do OK.