From octave-maintainers-request at bevo dot che dot wisc dot edu Tue Feb 24 09:59:40 1998 Subject: Functions in if (0) ... loops From: Michal Kaukic To: octave-maintainers at bevo dot che dot wisc dot edu 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)