The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: johnsa on August 14, 2018, 06:16:52 PM

Title: Lambda Function Feedback
Post by: johnsa on August 14, 2018, 06:16:52 PM
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.
Title: Re: Lambda Function Feedback
Post by: LiaoMi on August 14, 2018, 09:49:51 PM
Hi johnsa,

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