Re: [PATCH] Fix get-bytevector-all read redundant eof

2013-03-15 Thread Nala Ginrut
On Thu, 2013-03-14 at 17:30 +0800, Nala Ginrut wrote: > Attached the patch to fix get-bytevector-all. > You may check it like this: > (get-bytevector-all (current-input-port)) > > And try to input then type ctrl+d, the current implementation needs you > type ctrl+d twice. > > Regards. Sorry, bu

Re: Help required with exporting and using GOOP generics

2013-03-15 Thread Brent Pinkney
On 15/03/2013 02:11, dsm...@roadrunner.com wrote: Mark H Weaver wrote: The proper solution is as follows: * Every generic function must be defined (using 'define-generic') and exported from one (and only one) module. * Every module that uses a generic function, or adds a method to it

Core dump when throwing an exception from a resumed partial continuation

2013-03-15 Thread Brent Pinkney
Hi, I am using partial continuations to resume a computation when an external system returns with an answer. I am using (call-with-prompt ...) and (abort-to-prompt) When I resume the continuation in another thread, all works perfectly UNLESS the continued execution throws and exception. Then

Re: Help required with exporting and using GOOP generics

2013-03-15 Thread Mark H Weaver
Mark H Weaver wrote: > The proper solution is as follows: > > * Every generic function must be defined (using 'define-generic') and > exported from one (and only one) module. > > * Every module that uses a generic function, or adds a method to it (and > that includes slot accessors), must firs

Re: [PATCH] Fix get-bytevector-all read redundant eof

2013-03-15 Thread Mark H Weaver
Nala Ginrut writes: > On Thu, 2013-03-14 at 17:30 +0800, Nala Ginrut wrote: >> Attached the patch to fix get-bytevector-all. >> You may check it like this: >> (get-bytevector-all (current-input-port)) >> >> And try to input then type ctrl+d, the current implementation needs you >> type ctrl+d tw

Re: Core dump when throwing an exception from a resumed partial continuation

2013-03-15 Thread Andy Wingo
Hi, On Fri 15 Mar 2013 22:01, Brent Pinkney writes: > I am using partial continuations to resume a computation when an > external system returns with an answer. > I am using (call-with-prompt ...) and (abort-to-prompt) > > When I resume the continuation in another thread, all works perfectly Ne

Re: Help required with exporting and using GOOP generics

2013-03-15 Thread Mark H Weaver
Brent Pinkney writes: > How does that work in an environment where you are using third party > libraries, lice srfi, ice-9, guile-lib, etc as well as your own code. Okay, I have a guess about what you meant here. Suppose two independently developed modules add methods to generics with the same n

Re: [PATCH] Fix get-bytevector-all read redundant eof

2013-03-15 Thread Nala Ginrut
On Fri, 2013-03-15 at 17:20 -0400, Mark H Weaver wrote: > Nala Ginrut writes: > > > On Thu, 2013-03-14 at 17:30 +0800, Nala Ginrut wrote: > >> Attached the patch to fix get-bytevector-all. > >> You may check it like this: > >> (get-bytevector-all (current-input-port)) > >> > >> And try to input