Mercurial > octave
view test/ctor-vs-method/@parent/parent.m @ 33658:b1d6e40ac737 stable tip
NEWS.9.md: Fix typo and minor formatting changes.
* etc/NEWS.9.md: Fix typo. Adjust whitespace. Use markdown syntax for code
snippets.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 05 Jun 2024 11:27:35 +0200 |
parents | ae7ce8358953 |
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