Re: Making every goops object applicable

2012-05-15 Thread Ludovic Courtès
Hi, Krister Svanlund krister.svanl...@gmail.com skribis: Apparently this works by some flag being set by applicable-strukt in libguile for the object and that flag is checked during application, calling the 'procedure slot if it's set with some optimization assuming that 'procedure is the

Re: Making every goops object applicable

2012-05-15 Thread Mark H Weaver
Krister Svanlund krister.svanl...@gmail.com writes: For example an instance of a class inheriting a class that inherits applicable-struct that defines 'procedure is not applicable. Looking at the code, it is clear that in order for a GOOPS instance to be applicable, it is not enough for

Re: Making every goops object applicable

2012-05-15 Thread Neil Jerram
Mark H Weaver m...@netris.org writes: Krister Svanlund krister.svanl...@gmail.com writes: For example an instance of a class inheriting a class that inherits applicable-struct that defines 'procedure is not applicable. Looking at the code, it is clear that in order for a GOOPS instance to

Re: Making every goops object applicable

2012-05-15 Thread Mark H Weaver
Hi Neil! Neil Jerram n...@ossau.homelinux.net writes: Mark H Weaver m...@netris.org writes: Krister Svanlund krister.svanl...@gmail.com writes: For example an instance of a class inheriting a class that inherits applicable-struct that defines 'procedure is not applicable. Looking at the

Making every goops object applicable

2012-05-14 Thread Krister Svanlund
In our work to look into how Python 3 could be implemented for Guile we have figured out that the only way to make a goops object applicable is to have it inherit applicable-struct. This does not always work the way it could be expected, for example when inheriting from several classes. Apparently

Fwd: Making every goops object applicable

2012-05-14 Thread Krister Svanlund
-- Forwarded message -- From: Krister Svanlund krister.svanl...@gmail.com Date: Tue, May 15, 2012 at 2:45 AM Subject: Re: Making every goops object applicable To: Mark H Weaver m...@netris.org On Tue, May 15, 2012 at 12:16 AM, Mark H Weaver m...@netris.org wrote: Krister