Hello, Vadim!
Ela itself is written in C# (100% pure and safe). You can use it in unmanaged language only through the wrapper (the wrapper can be written using C++/CLI for example), that would expose main Ela functions (such as compile, etc.) as DLL functions.
Another option for you may be to compile your DLL using C++/CLI which can do both managed and unmanaged. In that case Ela can be used as a simple library as in C#.
As for your code sample, when I run using the latest version of Ela I received the following error message (which is expected):
Error ELA820: 'isnil' is not implemented for the given argument list.
And no crushes. Can you send me the full text of your program?
Regards,
Basil.
--
---
You received this message because you are subscribed to the Google Groups "elalang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elalang+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
An ability to call native functions is not available by default, but it can be added using Ela foreign functions interface. There is a sample in the docs:
http://elalang.net/docs/Article.aspx?p=embedding.htm
The idea is – Ela calls a function in C# which then calls a native function. It would be a double marshalling though:
Ela types -> .NET types (done by Ela) and then .NET types -> native types (done by P/Invoke)
--
Can you send me this function? Normally Elide would respond in such as case.
From: ela...@googlegroups.com [mailto:ela...@googlegroups.com] On Behalf Of Vadim Tukaev
Sent: Monday, February 10, 2014 11:23 PM
To: ela...@googlegroups.com
Subject: Re: Ela & C++
It is too complex. :( Better I decide this problem by using more appropriate languages, such as Gambit Scheme or newLisp. This does not mean that I reject the idea to explore Ela. That library is just one small task.
By the way, I got a real problem with Ela right now.
I wrote a function that went into an infinite loop. I could not break it, because Elida stopped responding. I had to kill the process. By the time he ate half of my memory.
--
Я попробовал, Elide не завис, исполнение, конечно, долгое, но его можно остановить через Build->Stop Execution.
From: ela...@googlegroups.com [mailto:ela...@googlegroups.com] On Behalf Of Vadim Tukaev
Sent: Tuesday, February 11, 2014 10:32 AM
To: ela...@googlegroups.com
Subject: Re: Ela & C++
fact x = x * fact (x - 1)
понедельник, 10 февраля 2014 г., 23:30:00 UTC+4 пользователь vorov2 написал:
Can you send me this function? Normally Elide would respond in such as case.
--