octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #55995] "continue" is dynamically, not lexical


From: Rik
Subject: [Octave-bug-tracker] [bug #55995] "continue" is dynamically, not lexically scoped - callable from functions without for loops
Date: Mon, 25 Mar 2019 16:39:14 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #3, bug #55995 (project octave):

This behavior may not be Matlab compatible, but it is not unknown.  I just
tested with Perl and it recognizes a dynamically scoped "next" statement
(equivalent of continue).  The "last" statement (equivalent of break) is also
dynamically scoped.

This probably should be discussed on the Octave Maintainer's e-mail list since
it is a somewhat philosophical point.  One advantage of the current behavior
is that it is already coded.  I don't know how difficult it would be to change
it to have the same behavior as the break statement.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55995>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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