octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #32533] Operator precedence for transpose inco


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #32533] Operator precedence for transpose incorrect
Date: Thu, 21 Apr 2011 20:40:30 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110107 Iceweasel/3.5.16 (like Firefox/3.5.16)

Follow-up Comment #18, bug #32533 (project octave):

I think I've fixed the transpose problem (it looks like it was a typo in the
precedence table).

I also fixed the a--' problem.  This was a lexer bug.  It was not allowing '
to be recognized as a transpose operator after -- or ++.  Now it is.  But I
think your test was not quite right, so I fixed it.  Instead of


%!  a = [3 5];
%!  assert (2.^a ++, [8 32])
%!  assert (a, [4 6])
%!  assert (a--', [3; 5])
%!  assert (a, [2 4])


I changed it to


%!  a = [3 5];
%!  assert (2.^a ++, [8 32])
%!  assert (a, [4 6])
%!  assert (a--', [4; 6])
%!  assert (a, [3 5])


My current version of the changeset is attached.
Either that, or I think it needs to reinitialize a before doing the --'
operation.


(file #23286)
    _______________________________________________________

Additional Item Attachment:

File name: diff6.txt                      Size:20 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32533>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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