view test/bug-58572/bug58572.m @ 31247:3dae836c598c

doc: Expand and edit documentation for memoization (bug #60860)
author Arun Giridhar <arungiridhar@gmail.com>
date Fri, 30 Sep 2022 06:38:59 -0400
parents 1be719d8b375
children
line wrap: on
line source

classdef bug58572
  methods
    function rslt = use_num (obj)
      rslt = cellfun (@isnumeric, {'a_name'});
    endfunction
    function rslt = isnumeric (obj)
      if (! isa (obj, 'bug58572'))
        error ('bug58572.isnumeric called without object!');
      endif
      rslt = true;
    endfunction
  endmethods
endclassdef