#7504: Magma booleans don't evaluate correctly in boolean contexts
--------------------------+-------------------------------------------------
   Reporter:  kedlaya     |       Owner:  was                   
       Type:  defect      |      Status:  needs_review          
   Priority:  major       |   Milestone:                        
  Component:  interfaces  |    Keywords:  magma, boolean context
Work_issues:              |      Author:                        
   Upstream:  N/A         |    Reviewer:                        
     Merged:              |  
--------------------------+-------------------------------------------------
Changes (by was):

  * status:  new => needs_review
  * upstream:  => N/A


Comment:

 In Magma we have:

 {{{
 > false ne 0;

 >> false ne 0;
          ^
 Runtime error in 'ne': Bad argument types
 Argument types given: BoolElt, RngIntElt

 > 1 ne 0;
 true
 }}}

 I.e., comparing false to 0 is not allowed in Magma.   So we need to add
 code to __nonzero__ that also tests bools.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7504#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--

You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=.


Reply via email to