[Top][All Lists]

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

[Octave-bug-tracker] [bug #34868] subsref crashes octave

From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #34868] subsref crashes octave
Date: Wed, 23 Nov 2011 19:03:09 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Iceweasel/7.0.1

Follow-up Comment #20, bug #34868 (project octave):

x([]) = rhs ==> subsasgn (x, struct ("type", '()', subs [], rhs)

If the indexing struct is empty, then it seems the equivalent expression would

x() = rhs

That is not valid syntax, but since there is no index, it seems to me that it
should be interpreted as

x = rhs

Since subsasgn can not modify its first argument, but is normally used by

x = subsasgn (x, idx, rhs)

I think subsasgn should return rhs if the index struct is empty.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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