[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
global variables
From: |
michaelschmid1 |
Subject: |
global variables |
Date: |
Fri, 26 May 2006 13:16:39 +0200 |
Hi all
I tried to set a variable global ..
global DEGUB = 0;
then, some functions later..
... = func1(...)
... = func2(...)
isglobal("DEBUG")
(END func2)
(END func1)
the "isglobal("DEBUG")" statement will answer with 0.. should this not be
1 ?
Or isn't it possible to get some function calls deeper the global variables?
"A variable that has been declared global may be accessed from within a function
body without having to pass it as a formal parameter."
- I never passed it somehow...
I'm using Octave -2.9.5
on Cygwin
on WinXP
Thanks for any help
Michel
- global variables,
michaelschmid1 <=