11.07.2015 Views

CL-STORE: CL Serialization Package - Common Lisp.net

CL-STORE: CL Serialization Package - Common Lisp.net

CL-STORE: CL Serialization Package - Common Lisp.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1: Introduction 11 Introduction<strong>CL</strong>-<strong>STORE</strong> is a portable serialization package for <strong>Common</strong> <strong>Lisp</strong> which allows the readingand writing of most objects found in <strong>Common</strong> <strong>Lisp</strong> resolving any circularities which itdetects. It is intended to serve the same purpose as Java's ObjectOutput and ObjectInput-Stream, although it's somewhat more extensible.The <strong>CL</strong>-<strong>STORE</strong> Home Page is at http://common-lisp.<strong>net</strong>/project/cl-store whereone can nd details about mailing lists, cvs repositories and various releases.This documentation is for <strong>CL</strong>-<strong>STORE</strong> version 0.6 .Enjoy Sean.1.1 Example(defclass myclass () ((a :accessor a :initarg :a)))(cl-store:store (make-instance 'myclass :a 3) "/tmp/test.out")(a (cl-store:restore "/tmp/test.out"))1.2 Supported Objects Numbers (oats, integers, complex, NaN oats, rationals) Strings (Supports Unicode Strings) Characters Symbols <strong>Package</strong>s HashTables Lists Vectors And Arrays Instances of <strong>CL</strong>OS Classes <strong>CL</strong>OS Classes Structure Instances Structure Denitions (CMU<strong>CL</strong> and SB<strong>CL</strong> only) Functions (stores the function name) Generic Functions (stores generic-function-name)1.3 Supported Implementations SB<strong>CL</strong> CMU<strong>CL</strong> <strong>CL</strong>ISP <strong>Lisp</strong>works Allegro <strong>CL</strong> OpenM<strong>CL</strong> E<strong>CL</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!