Mercurial > octave-nkf
comparison src/DLD-FUNCTIONS/onCleanup.cc @ 10840:89f4d7e294cc
Grammarcheck .cc files
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 31 Jul 2010 11:18:11 -0700 |
parents | 604e13a89c7f |
children | a4f482e66b65 |
comparison
equal
deleted
inserted
replaced
10839:65bc065bec95 | 10840:89f4d7e294cc |
---|---|
252 DEFUN_DLD (onCleanup, args, , | 252 DEFUN_DLD (onCleanup, args, , |
253 "-*- texinfo -*-\n\ | 253 "-*- texinfo -*-\n\ |
254 @deftypefn {Loadable Function} {@var{c} =} onCleanup (@var{action})\n\ | 254 @deftypefn {Loadable Function} {@var{c} =} onCleanup (@var{action})\n\ |
255 Creates a special object that executes a given function upon destruction.\n\ | 255 Creates a special object that executes a given function upon destruction.\n\ |
256 If the object is copied to multiple variables (or cell or struct array elements)\n\ | 256 If the object is copied to multiple variables (or cell or struct array elements)\n\ |
257 or returned from a function, @var{action} will be executed after clearing the last\n\ | 257 or returned from a function, @var{action} will be executed after clearing the\n\ |
258 copy of the object. Note that if multiple local onCleanup variables are created, the\n\ | 258 last copy of the object. Note that if multiple local onCleanup variables are\n\ |
259 order in which they are called is unspecified.\n\ | 259 created, the order in which they are called is unspecified.\n\ |
260 @seealso{unwind_protect}\n\ | 260 @seealso{unwind_protect}\n\ |
261 @end deftypefn") | 261 @end deftypefn") |
262 { | 262 { |
263 octave_value retval; | 263 octave_value retval; |
264 | 264 |