[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36658] acceptance of "global a = b"
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #36658] acceptance of "global a = b" |
Date: |
Mon, 02 Jul 2012 15:29:31 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1 |
Follow-up Comment #7, bug #36658 (project octave):
I took a look at the Matlab documentation and, as Michael has verified, they
don't support initializers for global or persistent variables. I think
inititializers, particularly for persistent variables, are a good thing and
Octave should have them.
Since we don't need to meet Matlab compatibility we can follow our own path.
I would argue that the confusing thing in this situation is that
initialization looks just like assignment. If the two operations appear
different then I wouldn't expect that they do the same thing.
What about one of the following symbols for initialization?
global a := 1
global a <= 1
global a @= 1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36658>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- Re: [Octave-bug-tracker] [bug #36658] acceptance of "global a = b", Levente Torok, 2012/07/01
- Re: [Octave-bug-tracker] [bug #36658] acceptance of "global a = b", Levente Torok, 2012/07/01
- [Octave-bug-tracker] [bug #36658] acceptance of "global a = b", Torok Levente, 2012/07/02
- [Octave-bug-tracker] [bug #36658] acceptance of "global a = b", Michael Godfrey, 2012/07/02
- [Octave-bug-tracker] [bug #36658] acceptance of "global a = b",
Rik <=
- [Octave-bug-tracker] [bug #36658] acceptance of "global a = b", John W. Eaton, 2012/07/02
- [Octave-bug-tracker] [bug #36658] syntax change for initialization of global/persistent variables, Rik, 2012/07/02
- [Octave-bug-tracker] [bug #36658] syntax change for initialization of global/persistent variables, John W. Eaton, 2012/07/02
- [Octave-bug-tracker] [bug #36658] syntax change for initialization of global/persistent variables, John W. Eaton, 2012/07/02
- [Octave-bug-tracker] [bug #36658] syntax change for initialization of global/persistent variables, Torok Levente, 2012/07/02
- [Octave-bug-tracker] [bug #36658] syntax change for initialization of global/persistent variables, John W. Eaton, 2012/07/02
- [Octave-bug-tracker] [bug #36658] syntax change for initialization of global/persistent variables, Torok Levente, 2012/07/02
- [Octave-bug-tracker] [bug #36658] syntax change for initialization of global/persistent variables, Rik, 2012/07/02
- [Octave-bug-tracker] [bug #36658] syntax change for initialization of global/persistent variables, John W. Eaton, 2012/07/02
- [Octave-bug-tracker] [bug #36658] syntax change for initialization of global/persistent variables, Rik, 2012/07/02