is (char 0) correct?

Started by Sammo, December 29, 2003, 09:57:14 AM

Previous topic - Next topic

Sammo

> (char 2) --> "02"

> (char "02") --> 2

> (char (char "02")) --> "02"



> (char 1) --> "01"

> (char "01") --> 1

> (char (char "01")) --> "01"



> (char 0) --> ""

> (char "00") --> 0

> (char (char "00")) --> ""



Shouldn't (char 0) --> "00"?

Lutz

#1
yes that is a bug, it should be:



(char 0) => "00" ; not ""



I will post a new developers release tomorrow with a fix for '(char 0)' and recognition of the precision spec for strings in format:



(format "%5.2" "hello") => "   he" ; 3 spaces in front of 'he'



and a new documentation with Nigel's corrections: rev-4



Lutz