On Mon, 09 Jan 2012 16:18:04 -0500
Mark H Weaver wrote:
> Mike Gran writes:
> > scm_from_locale_symbol ("scheme"));
>
> Note that it's good practice to always use `scm_from_utf8_symbol' or
> `scm_from_latin1_symbol' when the argument is a C string literal. The
> choice of which (`utf8' or `l
> From: Mark H Weaver
>> scm_from_locale_symbol ("scheme"));
>
> Note that it's good practice to always use `scm_from_utf8_symbol' or
> `scm_from_latin1_symbol' when the argument is a C string literal.
[... ]
> More importantly, since many people tend to copy code snippets from what
> the
On Mon 09 Jan 2012 20:16, Mike Gran writes:
>> From: Andy Wingo
> >> For guile-2.0, I eventually settled on
>>>
>>> scm_call_1 (scm_c_public_ref ("system repl repl",
>> "start-repl"),
>>> scm_from_locale_symbol ("scheme"));
>>
>> This won't catch SIGINT, and it won't add on the sess
Mike Gran writes:
> scm_from_locale_symbol ("scheme"));
Note that it's good practice to always use `scm_from_utf8_symbol' or
`scm_from_latin1_symbol' when the argument is a C string literal. The
choice of which (`utf8' or `latin1') depends on the encoding of your C
source file. Similarly, fo
> From: Andy Wingo
>> For guile-2.0, I eventually settled on
>>
>> scm_call_1 (scm_c_public_ref ("system repl repl",
> "start-repl"),
>> scm_from_locale_symbol ("scheme"));
>
> This won't catch SIGINT, and it won't add on the session, regex, and
> threads bindings to your guile-user.
On Mon 09 Jan 2012 19:11, Mike Gran writes:
>> scm_call_1 (scm_public_ref ("ice-9 top-repl", "top-repl")) ?
>>
>> Do we need a better answer here? :)
>
> For guile-2.0, I eventually settled on
>
> scm_call_1 (scm_c_public_ref ("system repl repl", "start-repl"),
> scm_from_locale_symbol ("s
> From: Andy Wingo
> To: Mike Gran
> Cc: Guile User
> Sent: Monday, January 9, 2012 9:35 AM
> Subject: Re: gh_repl
>
> On Sun 25 Sep 2011 05:54, Mike Gran writes:
>
>> What is the replacement for gh_repl?
>
> I don't know! When I started with Guile
On Sun 25 Sep 2011 05:54, Mike Gran writes:
> What is the replacement for gh_repl?
I don't know! When I started with Guile in 2003 I think the GH API was
already deprecated :)
> Which is to say, if I'm using Guile as an extension language, what
> command should I execute i
Hi-
What is the replacement for gh_repl? Which is to say, if I'm using
Guile as an extension language, what command should I execute in C
to drop me into the Guile REPL?
Thanks,
Mike