Menu

#2920 binary operator fails if declared `l(r)associative'

None
closed
5
2021-11-13
2015-03-13
No

Here is an example:

(%i1) infix("||") $
(%i2) declare("||", rassociative) $
(%i3) A || B || C $
"||": wrong number of arguments.
 -- an error. To debug this try: debugmode(true);

Discussion

  • Kris Katterjohn

    Kris Katterjohn - 2021-11-13
    • status: open --> closed
    • assigned_to: Kris Katterjohn
     
  • Kris Katterjohn

    Kris Katterjohn - 2021-11-13

    Thank you for the report. This has been fixed by commit [00180b]. See also bug [#2876] for more.

    (%i1) infix ("||")$
    
    (%i2) declare ("||", rassociative)$
    
    (%i3) a || b || c || d;
    (%o3) a || (b || (c || d))
    
     

    Related

    Bugs: #2876
    Commit: [00180b]


Log in to post a comment.