Mercurial > hg > octave-nkf
changeset 2142:3dc97364d58e
[project @ 1996-05-13 04:34:11 by jwe]
author | jwe |
---|---|
date | Mon, 13 May 1996 04:34:11 +0000 |
parents | 420afeadbb45 |
children | fe675f6fa03a |
files | examples/hello.cc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/hello.cc +++ b/examples/hello.cc @@ -88,7 +88,11 @@ // octave_stdout, so it will also end up going through the pager. for (int i = 0; i < nargin; i++) - retval (nargin-i-1) = args(i).print (); + { + octave_value tmp = args (i); + tmp.print (); + retval (nargin-i-1) = tmp; + } return retval; }