Mercurial > octave-nkf
view test/ctor-vs-method/@parent/parent.m @ 18013:501cb6a90f0f stable
maint: Replace unnecessary tabs with spaces.
* doc/interpreter/images.awk, libinterp/dldfcn/config-module.awk,
libinterp/octave-value/module.mk, m4/module.mk,
scripts/java/org/octave/Matrix.java, scripts/miscellaneous/module.mk,
scripts/sparse/module.mk, scripts/startup/main-rcfile,
test/build-sparse-tests.sh, test/ctor-vs-method/@parent/parent.m:
maint: Replace unnecessary tabs with spaces.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 25 Nov 2013 22:10:06 -0800 |
parents | 6c952376482d |
children |
line wrap: on
line source
function rot = parent (a) __trace__ ('begin parent/parent'); if (nargin == 0) rot = class (struct (), 'parent'); else switch class (a) case 'parent' %% copy constructor rot = a; otherwise error ('type mismatch in parent constructor') end end __trace__ ('end parent/parent'); end