Open jhiswin opened 10 years ago
Possible designs are:
subroutine({param: foo}); This will become ugly, when a lot of arguments are transported by ref.
param.byref = foo subroutine(param); foo = param.byref;
I personally do not like the second version. Please comment.
Emitting a JS comment (and/or a debugger breakpoint) when parameters are set would make the conversion process easier:
Ideally this would be handled automatically, but that would be non-trivial, and in some cases may behave differently than intended or introduce performance penalties.