nsis icon indicating copy to clipboard operation
nsis copied to clipboard

Add reuse of code blocks

Open ndmitchell opened this issue 11 years ago • 0 comments

Currently some functions, e.g. strReplace expand to a lot of code. I should reuse that code in a function. Likely the syntax would be:

strReplace x y z = function "Development.NSIS.strReplace" [x,y,z] $ \[x,y,z] -> ...

That would generate a function which shoves the parameters into global variables, operates, and returns the result via a final global parameter (or list of them, perhaps).

One tricky detail is that uninstall and install functions live in different namespaces, so I might have to generate the function twice.

ndmitchell avatar Dec 14 '14 18:12 ndmitchell