view test/classes/@Snork/Snork.m @ 20595:c1a6c31ac29a

eliminate more simple uses of error_state * ov-classdef.cc: Eliminate simple uses of error_state.
author John W. Eaton <jwe@octave.org>
date Tue, 06 Oct 2015 00:20:02 -0400
parents b1283d4c06c2
children
line wrap: on
line source

function s = Snork (gick)
% Test class.

  if (nargin == 1 && isa (gick, 'Snork'))
    s = gick;
  else
    s.cack = [0 1 2 3];
    if (nargin == 0)
      s.gick = 1;
    else
      s.gick = gick;
    end
    s = class (s, 'Snork');
  end

end