help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

interpreter bug


From: Francesco Potortì
Subject: interpreter bug
Date: Thu, 12 May 2016 19:32:51 +0200

Sorry to use the list like this, but since it seems I cannot submit a
bug to the right palce, here is one more, to avoid risk of forgetting
about it.

Octave 4.0.2 on Linux.  Contrary to what declared in the docs, the last
three commands give different results, while they should be equivalent:

> clear a
> a.first.fd = 1;
> a.second.fd = 2;
> for [val key] = a; disp(val.fd); endfor
       1
       2
> for [val] = a; disp(val.fd); endfor
error: structure has no member 'fd'
error: evaluating argument list element number 1
> for val = a; disp(val.fd); endfor
error: structure has no member 'fd'
error: evaluating argument list element number 1

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.621.3058
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Skype:  wnlabisti
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it




reply via email to

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