view test/nest/scope1.m @ 31226:44cf6bbeeca9

sparse-xpow.cc: Change return type from int to bool for internal function
author Arun Giridhar <arungiridhar@gmail.com>
date Mon, 12 Sep 2022 05:35:48 -0400
parents fc4bb4bd1d5e
children
line wrap: on
line source

## scope1.m
function scope1 (n)
  value = n;
  if (value)
    C;
  end
  function A
    B;
    function B
      scope1 (0);
    endfunction
  endfunction

  function C
    D;
    function D
      A;
    endfunction
  endfunction
endfunction