[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multi-lingual guile: language strictness
From: |
Hans Åberg |
Subject: |
Re: multi-lingual guile: language strictness |
Date: |
Sat, 14 Jul 2018 21:09:08 +0200 |
> On 14 Jul 2018, at 20:45, Matt Wette <address@hidden> wrote:
>
> On 07/14/2018 09:22 AM, Hans Åberg wrote:
>>> On 14 Jul 2018, at 15:53, William ML Leslie <address@hidden>
>>> wrote:
>>>
>>> On 14 July 2018 at 12:57, Brett Gilio
>>> <address@hidden>
>>> wrote:
>>>
>>>> Is this possibility for making Guile multi-lingual a promised feature,
>>>> or more of a wishlist type thing? I'll have to think about some ways
>>>> that might be good to approach this, because the limiting
>>>> volunteer-community is definitely going to be an issue.
>>>>
>>> It's already a thing.
>>>
>>> https://www.gnu.org/software/guile/manual/html_node/Other-Languages.html
>> Is it possible to call them at the same time, via the C interface?
>>
> I would think so. In general all languages see the same name space.
>
> scheme@(guile-user)> ,L ecmascript
> Happy hacking with ECMAScript! To switch back, type `,L scheme'.
> ecmascript@(guile-user)> function foo(x) { return x + 1; };
> ecmascript@(guile-user)> foo(1);
> $1 = 2
> ecmascript@(guile-user)> ,L scheme
> Happy hacking with Scheme! To switch back, type `,L ecmascript'.
> scheme@(guile-user)> (foo 1)
> $2 = 2
Yes, that is what I asked for, to be able to create objects in one language and
interact with the same objects in another.
Re: multi-lingual guile: language strictness, William ML Leslie, 2018/07/14