93
edits
m (→Interpreter: -- fixed code formatting) |
|||
Line 119: | Line 119: | ||
*Allow local changes to variables to be written more compactly than is currently possible with unwind_protect. For example, | *Allow local changes to variables to be written more compactly than is currently possible with unwind_protect. For example, | ||
*:{{{ function f () local prefer_column_vectors = something; ... endfunction }}} would be equivalent to {{{ function f () save_prefer_column_vectors = prefer_column_vectors; unwind_protect prefer_column_vectors = something; ... unwind_protect_cleanup prefer_column_vectors = save_prefer_column_vectors; end_unwind_protectn endfunction }}} | *:{{{ | ||
*:: function f () | |||
*::: local prefer_column_vectors = something; | |||
*::: ... | |||
*:: endfunction | |||
*:}}} | |||
*:would be equivalent to | |||
*:{{{ | |||
*:: function f () | |||
*::: save_prefer_column_vectors = prefer_column_vectors; | |||
*::: unwind_protect | |||
*:::: prefer_column_vectors = something; | |||
*:::: ... | |||
*::: unwind_protect_cleanup | |||
*:::: prefer_column_vectors = save_prefer_column_vectors; | |||
*::: end_unwind_protectn | |||
*:: endfunction | |||
*:}}} | |||
*Fix all function files to check for bogus inputs (wrong number or types of input arguments, wrong number of output arguments). | *Fix all function files to check for bogus inputs (wrong number or types of input arguments, wrong number of output arguments). |