|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #53472] primes.m: char input producing weird behaviours |
Date: | Thu, 12 Apr 2018 16:23:45 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #53472 (project octave): Status: None => Fixed Open/Closed: Open => Closed _______________________________________________________ Follow-up Comment #2: I think it is better to use strict input validation. If a programmer has typed primes ('1') it is more likely to be an error then the intended result. If they really want to know all primes less than 49 then they can explicitly say so by converting the character to a number with double(). primes (double ('1')) I tightened the input validation in this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/8a92b651838b). Marking as fixed and closing report. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53472> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |