News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Lambda Function Feedback

Started by johnsa, August 14, 2018, 06:16:52 PM

Previous topic - Next topic

johnsa

Hi,

I've recently come into some spare-time, haha.. so will be working on finishing off 2.47 and 2.48 releases which will include plt/got support and a few other fixes still pending.
I was thinking adding support for lambda style functions might be nice, they could work something along these lines:



SomeFunction PROTO pHandler:PTR

...

invoke SomeFunction, ADDR aHander  ; This would be the traditional way to pass a handler/callback to another function.

...

with C-style calling we have:

SomeFunction(&aHandler) ; Possible now..

...

As an extension to this...

SomeFunction( (arg1:BYTE, arg2:DWORD) => {
   ; handler code...
})



Just a thought.. if anyone has any ideas about this.

LiaoMi

Hi johnsa,

I think its a really cool idea  :P, C++ Lambdas Under The Hood https://web.mst.edu/~nmjxv3/articles/lambdas.html