Pliant talk forum

Pliant talk forum

Bug report: repeat function with negative count

Following code crashed with no meaningfull error message:

console (repeat -2 "ab") eol
Message posted by thomasb on 2002/12/04 21:03:16
Looking at the implementation I see that repeat tries to allocate a negative
amount of memory. Should at least be a check clause, so it gives a meaningfull 
error message at debug level 2.
Message posted by maybe Hubert Tonneau on 2002/12/04 21:33:35
Done.