Projects: Difference between revisions

29 bytes removed ,  18 November 2011
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 ()
      function f ()
*:::        local prefer_column_vectors = something;
          local prefer_column_vectors = something;
*:::        ...
          ...
*::    endfunction
      endfunction
*:}}}
*:would be equivalent to
 
*:{{{
would be equivalent to
*::      function f ()
 
*:::        save_prefer_column_vectors = prefer_column_vectors;
        function f ()
*:::        unwind_protect
          save_prefer_column_vectors = prefer_column_vectors;
*::::          prefer_column_vectors = something;
          unwind_protect
*::::          ...
              prefer_column_vectors = something;
*:::        unwind_protect_cleanup
              ...
*::::          prefer_column_vectors = save_prefer_column_vectors;
          unwind_protect_cleanup
*:::        end_unwind_protectn
              prefer_column_vectors = save_prefer_column_vectors;
*::      endfunction
          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).
Line 164: Line 165:
*Use nanosleep instead of usleep if it is available? Apparently nanosleep is to be preferred over usleep on Solaris systems.
*Use nanosleep instead of usleep if it is available? Apparently nanosleep is to be preferred over usleep on Solaris systems.


*<strike>Per the following discussion, allow bsxfun style singleton dimension expansion as the default behavior for the builtin element-wise operators: http://octave.1599824.n4.nabble.com/Vector-approach-to-row-margin-frequencies-tp1636361p1636367.html</strike> This is done. Now [[JordiGH |I]] just have to document it.
*<strike>Per the following discussion, allow bsxfun style singleton dimension expansion as the default behavior for the builtin element-wise operators: http://octave.1599824.n4.nabble.com/Vector-approach-to-row-margin-frequencies-tp1636361p1636367.html</strike> This is done. Now [[User:JordiGH|I]] just have to document it


=Graphics=
=Graphics=