Re: Guile API for foreign languages: proposing SCM scm_list_0(void)

2013-01-15 Thread Andy Wingo
On Mon 14 Jan 2013 23:44, Alexei Matveev writes: > scm_to_int(); > scm_is_true(); > scm_is_symbol(); > scm_is_null(); We can change these to inline functions, no problem. They would also get an out-of-line version written to the .so, so that should work for you too. It seems that we ca

Re: Guile API for foreign languages: proposing SCM scm_list_0(void)

2013-01-15 Thread Ludovic Courtès
Hi! Andy Wingo skribis: > On Mon 14 Jan 2013 23:44, Alexei Matveev writes: > >> scm_to_int(); >> scm_is_true(); >> scm_is_symbol(); >> scm_is_null(); > > We can change these to inline functions, no problem. They would also > get an out-of-line version written to the .so, so that should

Re: Scanning for coding declarations in all files (not just source)

2013-01-15 Thread Ludovic Courtès
Hi, Mark H Weaver skribis: > I just discovered that Guile is scanning for coding declarations in > *all* files opened with 'open-file', not just source files. Yeah, I don’t really like it either. > For source files, we are scanning for coding declarations twice: once > when when the file is op

string port encodings

2013-01-15 Thread Andy Wingo
Quiz: what does this do? (define (f s) (with-output-to-string (lambda () (display s When called with a string, what should it do? Like (f "foo"). If you answered, "return the string", that's what I would think it should do. But no, currently the answer is locale-specific. It encodes

Re: string port encodings

2013-01-15 Thread Alex Shinn
On Tue, Jan 15, 2013 at 11:36 PM, Andy Wingo wrote: > Quiz: what does this do? > > (define (f s) > (with-output-to-string (lambda () (display s > > When called with a string, what should it do? Like (f "foo"). > > If you answered, "return the string", that's what I would think it > sho

Re: retagging

2013-01-15 Thread Andy Wingo
On Wed 02 Nov 2011 11:26, Andy Wingo writes: > Thanks for the review :) I finally folded in your suggested changes to wip-retagging and rebased onto master. Not sure what to do with it now; it reapplies that SCM_HEAP_OBJECT_P patch that people were having trouble with. More investigation neede

Re: patch: commit 5d34402: update non-text versions of figure

2013-01-15 Thread Andy Wingo
On Sun 25 Dec 2011 05:07, gregory benison writes: >> commit 5d344028fbf8b3e764549d975b20aa20ae316aa9 >> Author: Mark H Weaver >> Date: Tue Mar 1 13:46:08 2011 -0500 >> >> Remove incorrect footnote from GOOPS manual >> >> * doc/ref/goops.texi (Inheritance): Remove footnote which incorrectly

Re: string port encodings

2013-01-15 Thread Mark H Weaver
Hi Andy, Andy Wingo writes: > Quiz: what does this do? > > (define (f s) > (with-output-to-string (lambda () (display s > > When called with a string, what should it do? Like (f "foo"). > > If you answered, "return the string", that's what I would think it > should do. > > But no, curr

Re: string port encodings

2013-01-15 Thread Mike Gran
Hi Andy, > From: Andy Wingo > But no, currently the answer is locale-specific.  It encodes the string > according to the current locale, then decodes it from that encoding.  If > your locale can't encode the string, tough luck for you! > > This is a bit crazy.  Surely the port should be textual?