[Top][All Lists]

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

Re: [Chicken-hackers] [PATCH] Fix string->number (bug #1272) by checking

From: John Cowan
Subject: Re: [Chicken-hackers] [PATCH] Fix string->number (bug #1272) by checking early for invalid bases
Date: Thu, 31 Mar 2016 16:41:24 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

Peter Bex scripsit:

> See #1272 for more info.  I think the best solution is to check the
> argument and barf when a base outside the range 2..36 is passed,
> because what are even supposed to be the digits in higher bases?

Indeed, R5RS and R7RS only require bases 2, 8, 10, and 16 to work.
Everything else is surplusage.

John Cowan        address@hidden
The native charset of SMS messages supports English, French, mainland
Scandinavian languages, German, Italian, Spanish with no accents, and
GREEK SHOUTING.  Everything else has to be Unicode, which means you get
only 70 16-bit characters in a text instead of 160 7-bit characters.

reply via email to

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