From bug-octave-request at bevo dot che dot wisc dot edu Sat Mar 13 11:38:10 1999 Subject: global fails with multiple declarations like global a,b From: "John W. Eaton" To: daniel at dea dot icai dot upco dot es (José Daniel Muñoz Frías) Cc: bug-octave at bevo dot che dot wisc dot edu Date: Sat, 13 Mar 1999 11:35:54 -0600 (CST) On 12-Mar-1999, José Daniel Muñoz Frías wrote: | To: bug-octave at bevo dot che dot wisc dot edu | Cc: daniel | Subject: global fails with multiple declarations like global a,b | | Bug report for Octave 2.1.13 configured for %CANONICAL_HOST_TYPE% | | Description: | ----------- | The command: | | global a,b | | gives: | | error: `b' undefined near line 4 column 10 The NEWS file contains this item: * Commas in global statements are no longer special. They are now treated as command separators. This removes a conflict in the grammar and is consistent with the way Matlab behaves. The variable `warn_comma_in_global_decl' has been eliminated. So, if you want to declare more than one global variable in a global statement, don't separate the variable names with commas. Use global a b c d e; instead of global a, b, c, d, e; jwe