Skip to content

Add reuse of code blocks #4

@ndmitchell

Description

@ndmitchell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions