From: Russell McManus
Subject: format tilde-asterisk
Date: 
Message-ID: <87tzhcfqh7.fsf@thelonious.cl-user.org>
What is the expected return value of this form?

    (format nil "'~A' <= logdate and logdate < '~:*'" 1)

I was expecting:

    "'1' <= logdate and logdate < '1'"

but I get 

    "'1' <= logdate and logdate < ''"

in both sbcl and clisp.

-russ

From: John Thingstad
Subject: Re: format tilde-asterisk
Date: 
Message-ID: <op.uao8ddlkut4oq5@pandora.alfanett.no>
P� Mon, 05 May 2008 22:25:24 +0200, skrev Russell McManus  
<···············@yahoo.com>:

>
> What is the expected return value of this form?
>
>     (format nil "'~A' <= logdate and logdate < '~:*'" 1)
>
> I was expecting:
>
>     "'1' <= logdate and logdate < '1'"
>
> but I get
>
>     "'1' <= logdate and logdate < ''"
>
> in both sbcl and clisp.
>
> -russ
>

Check again! (CLHS 22.3.7.1) ~:* just backs up one argument.
Now if you actually want to print it again add a ~A

CL-USER 2 > (format nil "'~A' <= logdate and logdate < '~:*~A'" 1)
"'1' <= logdate and logdate < '1'"

--------------
John Thingstad
From: Russell McManus
Subject: Re: format tilde-asterisk
Date: 
Message-ID: <87prs0fmo9.fsf@thelonious.cl-user.org>
"John Thingstad" <·······@online.no> writes:

> Check again! (CLHS 22.3.7.1) ~:* just backs up one argument.
> Now if you actually want to print it again add a ~A
>
> CL-USER 2 > (format nil "'~A' <= logdate and logdate < '~:*~A'" 1)
> "'1' <= logdate and logdate < '1'"

Thanks!  I knew I was missing something simple...

-russ