Functions | |
id | G () |
!assert (G, 1)%%test/octave.test/global/global-2.m%!function f()%!global G | |
"G" | fail () = ones (3) |
!f () | |
id | H () |
!fail ("H") | |
!test!function | g ()%!fail("H") |
!test | !g () |
!assert (H, 1) | |
Variables | |
!test!global | G = 1 |
!f | |
!clear H | !g |
!assert | ( | H | , | |
1 | ||||
) |
!assert | ( | G | , | |
1 | ||||
) |
!f | ( | ) |
!fail | ( | "H" | ) |
!test !g | ( | ) |
fail | ( | ) | = ones (3) [virtual] |
!test !function g | ( | ) |
id G | ( | ) | [virtual] |
id H | ( | ) | [virtual] |
!test !f |
! clear H !g |
!test ! global G = 1 |