Are there more stylish (idiomatic) way to do this:
(format t (format nil "~~~dr" base) num)
Matt
--
"You do not really understand something unless you
can explain it to your grandmother." - Albert Einstein.
Matthew Swank <································@c.net> writes:
> Are there more stylish (idiomatic) way to do this:
>
> (format t (format nil "~~~dr" base) num)
Yes, the v modifier for directives:
(format t "~vR" base num)
Zach
On Tue, 07 Aug 2007 21:52:31 -0400, Zach Beane wrote:
> Matthew Swank <································@c.net> writes:
>
>> Are there more stylish (idiomatic) way to do this:
>>
>> (format t (format nil "~~~dr" base) num)
>
> Yes, the v modifier for directives:
>
> (format t "~vR" base num)
>
> Zach
Thank you.
--
"You do not really understand something unless you
can explain it to your grandmother." - Albert Einstein.
On Aug 7, 9:24 pm, Matthew Swank
<································@c.net> wrote:
> Are there more stylish (idiomatic) way to do this:
>
> (format t (format nil "~~~dr" base) num)
You can also look at alternatives to format: http://www.cs.yale.edu/homes/dvm/format-stinks.html
(some good ideas mixed in with the rant).