octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Functions in if (0) ... loops


From: Michal Kaukic
Subject: Functions in if (0) ... loops
Date: Tue, 24 Feb 1998 16:56:22 +0100 (CET)

Functions, contained in

   if (0)
    ...
   endif

blocks in script file get compiled after running that file.


E.g. let facfun.m be the file:

------------
NOT_FUNCTIONAL_FILE=1;

if (0)
   function y=facina(x)
      y=x.^3;
   endfunction
  
   B=2;

endif
------------

Running facfun causes the compilation of function facina, but variable B
is not created. 
Is this the expected behaviour of Octave?

                                  Mike.

(Michal Kaukic, Univ. of Zilina, Slovakia)            
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]