Replace fn: Franz lisp vs. Common Lisp 
Author Message
 Replace fn: Franz lisp vs. Common Lisp

In the near future, we are going to be porting a large application
written in Franz Lisp (MIRRORS/II) to Common Lisp.  We make a lot of
use of the replace function in Franz Lisp, especially when we have
multiple pointers pointing to the same location and want to change
the value at that location.  We can't find a way to do this in
Common Lisp.

From what I can tell, the replace function in Common Lisp only
works for sequences and we want to be able to replace non-sequences
such as flonums and fixnums.  Is there a way in Common Lisp to
replace the value of a location in a structure which contains
a flonum so that after the replace, all variables pointing to
the old value suddenly point to the new value?

Here's an example of what we'd like to be able to do in Common Lisp:
Script started on Thu Apr 19 11:54:04 1990
{brillig:~}51: lisp
Franz Lisp, Opus 42.16.3
(C) Copyright 1985, Franz Inc., Alameda Ca.
=> (setq   f a '1.0)
=> (setq b a)
=> (eq a b)
=> (replace a '0.0)
=> a
=> b
=> (eq a b)
=> (exit)

  Sharon Goodall
  Dept. of Computer Science
  University of Maryland, College Park

  uucp: uunet!mimsy!goodall

Mon, 05 Oct 1992 23:58:30 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Lucid (Sun) Common Lisp vs Allegro (Franz) Common Lisp - the Summary

2. Lucid (Sun) Common Lisp vs Allegro (Franz) Common Lisp

3. Franz Lisp --> Common Lisp - (nf)

4. Franz Lisp --> Common Lisp

5. Sun Common Lisp vs. Allegro Common Lisp

6. LISP vs Common LISP

7. What I want from my Common Lisp vendor and the Common Lisp community

8. New Common Lisp, Lisp-to-C translation, Lisp library for C

9. lucid common lisp -- C -- Common lisp intercallability

10. Looking for Franz Allegro Common Lisp 5.01

11. Franz Allegro Common Lisp 6.0: FFI

12. FS: Franz Allegro Common Lisp for Windows


Powered by phpBB® Forum Software