Get and add to function body

Psychological Cleanup Help at Saving.World
Thu Oct 12 23:39:56 UTC 2017


I'd also like to be able to save and store delegates, functions, 
and lambdas. One can't store the pointer to the function because 
it will be invalid, so another means is required, any ideas?

Save("f", (int){ ... }); // Saves to disk
auto f = Load("f"); // Loads from disk
f(3);








More information about the Digitalmars-d-learn mailing list