bug-gmp
[Top][All Lists]
Advanced

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

mpz_set_str should be restrictive


From: John Malecki
Subject: mpz_set_str should be restrictive
Date: Wed, 19 Feb 2003 15:50:16 -0800

I do not want "3 14" to mean 314.  I would like the conversion
function to be as strict as possible -- no spaces allowed anywhere.

     It turns out that it is not entirely true that this function
     ignores white-space.  It does ignore it between digits, but not
     after a minus sign or within or after "0x".  We are considering
     changing the definition of this function, making it fail when
     there is any white-space in the input, since that makes a lot of
     sense.  Send your opinion of this change to <address@hidden>.  Do
     you really want it to accept "3 14" as meaning 314 as it does now?




reply via email to

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