|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #61132] Colon operator fails for int64 and uint64 |
Date: | Mon, 13 Sep 2021 18:26:09 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 |
Follow-up Comment #4, bug #61132 (project octave): Hello jwe. A follow-up problem for all unsigned integer types, not just uint64. hi = intmax("uint64"); # OK lo = hi-99; # OK up = lo:hi; # OK down = hi:-1:lo; # error: colon operator increment invalid (not an integer or out of range for given integer type) down = fliplr(up); # current workaround to the error charup = 'a':'z'; # for comparison. this is OK. chardown = 'z':-1:'a'; # for comparison. this is OK too! Is this a conscious limit that one cannot construct descending ranges for unsigned integer types with the colon operator or is it a bug? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61132> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |