Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Are there any function pointer/lambda closure equivalents?

0
Posted

Are there any function pointer/lambda closure equivalents?

0

No, but you can simulate this sort of functionality with LPC should you require it. Indeed, Dworkin at one point wrote a simulation for the lambda closures of the 3.2 LPC (Amylaar) driver. Can I compile my LPC to C? Yes, you can. This must be done at the time the driver is compiled though, one cannot (quite) do it on the fly. Look in the src/lpc directory for more information concerning this. The 2.4.5 mudlib simulation contains a good example of how to do this. To perform this operation almost on the fly, compile the new version of the driver with the C version of the new LPC objects included then perform a state dump of the game before shutting down and restarting with the new driver.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123