|
From: SourceForge.net <no...@so...> - 2009-01-14 14:49:30
|
Feature Requests item #1814442, was opened at 2007-10-16 12:32 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373088&aid=1814442&group_id=22049 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: 2.0 Series Status: Open Priority: 5 Private: No Submitted By: Jens Lenge (jens_lenge) Assigned to: Nobody/Anonymous (nobody) Summary: Local variables and function parameters Initial Comment: It would be a *huge* improvement to the scripting language to support a) local variables in sections and functions, and b) named function parameters for data exchange. Local variables would allow to write much more maintainable code with non-cryptic variable names which still do not interfere with variables defined somewhere else or in any other include file. Allowing functions to accept named parameters and pass their results back to these parameters would extremely simplify the development of library functions with a clean interface. Current workarounds like saving/restoring register variables using the stack and using auxiliary macro definitions to wrap functions could be widely eliminated with this approach. While I am pretty sure these features might imply some fundamental changes to the scripting engine, I still believe such an improvement would be worth the effort. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2009-01-14 14:49 Message: If nsis had recursive macros or any kind of compile-time loop we could've faked this using !searchparse. What's easier, adding recursive macros ability or function parameters? ---------------------------------------------------------------------- Comment By: Amir Szekely (kichik) Date: 2007-12-16 22:13 Message: Logged In: YES user_id=584402 Originator: NO Another one: https://sourceforge.net/tracker/?func=detail&atid=373088&aid=1851917&group_id=22049 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373088&aid=1814442&group_id=22049 |