From: SourceForge.net <no...@so...> - 2009-02-09 23:11:49
|
Bugs item #2582327, was opened at 2009-02-09 10:31 Message generated for change (Comment added) made by andreas_kupries You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2582327&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 18. Commands M-Z Group: current: 8.6b1 Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Larry W. Virden (lvirden) Assigned to: Don Porter (dgp) Summary: string repeat returns confusing error message Initial Comment: $ tclsh8.6 % string repeat "abc" 1234567890 max size for a Tcl value (2147483647 bytes) exceeded % expr 1234567890 >= 2147483647 0 % expr 1234567890 < 2147483647 1 % string repeat seems to report that the argument exceeds a value which it is, in fact, smaller than. Perhaps the error message means something else? ---------------------------------------------------------------------- >Comment By: Andreas Kupries (andreas_kupries) Date: 2009-02-09 13:32 Message: What Don apparently wishes to express is that it is the _result_ of the 'string repeat' which is overflowing, and that this is what the error message is for. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2009-02-09 13:22 Message: % string length "abc" 3 % expr 3*1234567890 3703703670 % expr 3*1234567890 < 2147483647 0 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2582327&group_id=10894 |