gcl-devel
[Top][All Lists]
Advanced

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

[Gcl-devel] Reversing a string


From: Camm Maguire
Subject: [Gcl-devel] Reversing a string
Date: Thu, 07 Dec 2006 18:53:33 -0500
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigory ōmae) APEL/10.3 Emacs/21.2 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)

Greetings, and thank you for such helpful bug reports!  Should be
fixed now.

Take care,

=============================================================================
Hello,

Reversing a string changes its type if the code is compiled
(GCL-2.7.0) :

======================================================================
>(defun test(f) (reverse f))

TEST

>(test "mystring")

"gnirtsym"

>(compile 'test)

;; Compiling /tmp/gazonk_7313_0.lsp.
;; End of Pass 1.  
;; End of Pass 2.  
;; OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0,
Speed=3, (Debug quality ignored)
;; Finished compiling /tmp/gazonk_7313_0.o.
;; Loading /tmp/gazonk_7313_0.o
 ;; start address -T 0xc7b6d0 ;; Finished loading /tmp/gazonk_7313_0.o
#<compiled-function TEST>
NIL
NIL

>(test "mystring")

#(#\g #\n #\i #\r #\t #\s #\y #\m)
=======================================================================

As always, thanks for your work on GCL,

Greg




=============================================================================
-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

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