[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] Reversing a string
From: |
Vanuxem Gregory |
Subject: |
[Gcl-devel] Reversing a string |
Date: |
Tue, 05 Dec 2006 17:58:12 +0100 |
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
- [Gcl-devel] Reversing a string,
Vanuxem Gregory <=