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

[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/




reply via email to

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