view test/nest/nst2.m @ 30239:120e878f343f

mkdir.m: issue a warning if DIR already exists (bug #61338) * mkdir.m: When nargout==0, check status message and report a warning if "directory exists" message found.
author Rik <rik@octave.org>
date Wed, 13 Oct 2021 08:05:14 -0700
parents 6e9034836239
children
line wrap: on
line source

function fh = nst2 (pval)
  persistent p
  if (nargin > 0)
    p = pval;
  end
  fh = @nst;
  function r = nst (pval)
    if (nargin > 0)
      p = pval;
    end
    r = p;
  end
end