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

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

[Octave-bug-tracker] [bug #56385] operations don't compose


From: anonymous
Subject: [Octave-bug-tracker] [bug #56385] operations don't compose
Date: Thu, 30 May 2019 13:23:37 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0

Follow-up Comment #5, bug #56385 (project octave):

Actually, it seems this problem has not been totally fixed for all
functions... With the attached slightly augmented MyFavoriteDouble class, I
recover the same issue:


octave:1> mex myFavDouble_mex.cpp
octave:2> a = myFavDouble(2)
 
a = 
 
2.000000
 
octave:3> b = myFavDouble(3)
 
b = 
 
3.000000
 
octave:4> a:b
ans =

   2   3

octave:5> b:a
ans = [](1x0)
octave:6> myFavDouble(2):myFavDouble(3)
octave:7> myFavDouble(3):myFavDouble(2)
octave:8> c=myFavDouble(2):myFavDouble(3)
error: value on right hand side of assignment is undefined
octave:8> d=myFavDouble(3):myFavDouble(2)
error: value on right hand side of assignment is undefined


Results are properly assigned when calling the function `colon` with
pre-existing objects. But no results are assigned when the method `colon` is
called with new objects. We would expect the last four lines to reproduce the
results of lines 4 and 4... (running octave 6.0.0)

(file #47005)
    _______________________________________________________

Additional Item Attachment:

File name: MyFavoriteDouble.tar.gz        Size:38 KB
    <https://savannah.gnu.org/file/MyFavoriteDouble.tar.gz?file_id=47005>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56385>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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