From bug-octave-request at bevo dot che dot wisc dot edu Fri Jan 15 10:53:46 1999 Subject: [lost mail? ]`list' behaviour different in octave-2.1.10 and 2.1.12 From: Joao Cardoso To: John Eaton CC: bug-octave Date: Fri, 15 Jan 1999 10:53:51 -0600 (CST) ------- start of forwarded message ------- [Some days ago I sent this e-mail that seems to be lost; I resent it here again] [I think the problem was that your address on the list was jcardoso at bart dot inescn dot pt, but this message came from jcardoso at inescn dot pt dot I changed your address on the list and am reposting the message for you. The odd thing is that SmartList did not notify me that the message had not been posted. Hmm. --jwe] Hi, In octave-2.1.10 one could retrive an element from a list and use it as normal variable. This behaviour has been changed in octave-2.1.12. Is this deliberate? If it is, I can't see how to use lists... In 2.1.10: octave-2.1.10:1> a=list(1,2,3); octave-2.1.10:2> a(2)*3 ans = 6 in 2.1.12: octave-2.1.12:1> a=list(1,2,3); octave-2.1.12:2> a(2)*3 error: binary operator `*' not implemented for `list' by `scalar' operations error: evaluating binary operator `*' near line 2, column 5 octave-2.1.12:2> t=a(2) t = ( [1] = 2 ) octave-2.1.12:3> t*2 error: binary operator `*' not implemented for `list' by `scalar' operations error: evaluating binary operator `*' near line 3, column 2 octave-2.1.12:3> This happens also for matrices. Thanks, Joao -- Joao Cardoso, INESC | e-mail: R. Jose Falcao 110 | tel: + 351 2 2094345 4050 Porto, Portugal | fax: + 351 2 2008487