|
From: | Ceral Paquet |
Subject: | [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered |
Date: | Sat, 29 Apr 2017 05:16:50 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Follow-up Comment #8, bug #50893 (project octave): I can't find any documentation about it. Yes it does look rather ad hoc. Looks like Rik found a genuine bug tho rather that this little WTF. For me, it would help to just leave a 0x0 double in the workspace (or any class, it doesn't matter). It would be just to make things like this work in Octave when n=0: a = rand(n,1); for k = 1:n if a(k)>0.5; break; end end b = a(k); _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?50893> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |