view test/bug-52851/script2.m @ 33608:5fba13104493 bytecode-interpreter tip

maint: merge default to bytecode-interpreter.
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Sat, 18 May 2024 22:40:00 -0400
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);