From: Timofei Shatrov on 25 Mar 2010 08:50 On Fri, 19 Mar 2010 23:12:34 -0400, "vanekl" <vanek(a)acd.net> tried to confuse everyone with this message: >Krzysztof Drewniak wrote: >> Hi all, >> >> I am going to try and write a roguelike in CL. To implement >> saving/loading, I would like to implement saves by 'print'ing and >> 'read'ing from a file. However, I will be using CLOS, and the >> standard 'print-object' is useless in this situation. Could someone >> please provide code or pointers to code that lets you print an object >> (and all of its slots) and read it back in, without losing any values. >> >> Thanks, >> >> Krzysztof Drewniak > >you may find this useful. >requires installation of cl-store. > >CL-USER>(require :cl-store) Indeed. When writing a game, saving/loading data is not something you want to waste a lot of time on. I used CL-STORE for my games and it works very well. -- |Don't believe this - you're not worthless ,gr---------.ru |It's us against millions and we can't take them all... | ue il | |But we can take them on! | @ma | | (A Wilhelm Scream - The Rip) |______________|
First
|
Prev
|
Pages: 1 2 3 Prev: Forgot to mention... Next: Just learning lisp - tail recursion issues? |