On Sat, Nov 15, 2008 at 5:06 PM, Andreas Davour <[EMAIL PROTECTED]> wrote:
> On Thu, 13 Nov 2008, Elliott Slaughter wrote: > > > Hi, > > I've been back at trying to write a REPL for my game lately, taking the > > on-screen approach to avoid multi-threading issues. > > > > I had the idea of writing a stream class (extending trivial gray streams) > to > > automatically draw text to a surface, but my code crashes under > Windows/SBCL > > for reasons which I can't determine. Annoyingly, the same code runs > > perfectly under Allegro CL. I wasn't sure whether to post the crash here, > or > > in sbcl-devel, but I figured I'd try here first to see if anyone has any > > ideas. > > > > I have attached the source code for people to read and test. > > I've read the code, and as usual I feel object oriented programming > obfuscates more than it illuminates. But, that might just be me being > unused to it. I admit that the gray stream code looks especially obtuse. But it does allow me to (format *repl-output* "Hello World~%") to print things to the screen, which is rather nice. Anyway. Even though I don't understand it, I can tell it compiles and > runs fine under FreeBSD/SBCL-1.0.20 until I quit. I managed to get my code working under Windows/SBCL-1.0.13 by fiddling with my my internal stream implementation. I'm guessing I just abused the garbage collector a little too much. Thanks to everyone for your help. -- Elliott Slaughter "Any road followed precisely to its end leads precisely nowhere." - Frank Herbert
_______________________________________________ application-builder mailing list [email protected] http://www.lispniks.com/mailman/listinfo/application-builder
