view test/bug-52851/script2.m @ 31221:f5755dbacd8d

maint: merge stable to default
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Wed, 31 Aug 2022 22:04:02 +0200
parents d45d1b4bb919
children
line wrap: on
line source

1; %script identifier

function r = caller (fun)
  r = fun ();
endfunction

function r = computation ()
  r = 1;
endfunction

r1 = caller (@computation);

function r = computation ()
  r = 2;
endfunction

r2 = caller (@computation);