From bug-octave-request at bevo dot che dot wisc dot edu Mon Oct 4 11:39:19 1999 Subject: Re: Unidentified subject! From: Joao Cardoso To: Victor Eijkhout CC: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 04 Oct 1999 17:39:10 +0100 Victor Eijkhout wrote: > > To: bug-octave at bevo dot che dot wisc dot edu > Subject: 'global' statement with initialisation does not work if multiple invocations > > Bug report for Octave 2.0.13 configured for i686-pc-linux-gnu > > Description: > ----------- > > A statement 'global = ' does not behave as an assignment > when issued repeatedly. > > Repeat-By: > --------- > > global x = 3; > x = 5; > global x = Global variables can be initialized only once, as src/ChangeLog says: Wed Nov 19 00:08:13 1997 John W. Eaton * pt-decl.cc (tree_global_command::do_init): Initialize global values to `[]'. Only perform explicit initialization once. Joao --- Joao Cardoso | e-mail: jcardoso at inescn dot pt INESC, R. Jose Falcao 110 | tel: + 351 2 2094322 4050 Porto, Portugal | fax: + 351 2 2008487 --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------