Mercurial > octave
view test/local-functions/local_function_eval.m @ 31230:6646f2b5a3d1
lcm.m: Emit warnings when results not exact (Bug #32924)
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Sat, 17 Sep 2022 04:22:38 -0400 |
parents | 1fbd8afcf625 |
children |
line wrap: on
line source
function status = local_function_eval () eval ("y = 5;"); status = local_fcn ("y = 6;"); endfunction function status = local_fcn (expr) eval (expr); status = exist ("y", "var"); endfunction