How D addresses the problem of Extending and/or Embedding other languages ?
via Digitalmars-d
digitalmars-d at puremagic.com
Tue Aug 26 10:49:32 PDT 2014
On Tuesday, 26 August 2014 at 14:46:56 UTC, Jacob Carlborg wrote:
> On 26/08/14 13:40, "Marc Schütz" <schuetzm at gmx.net>" wrote:
>
>> I've heard about them, but I don't know any details. Anyway,
>> the way
>> Ruby works, they either need to restrict the language, include
>> a full
>> interpreter/jitter, or at most they could only translate it to
>> a very
>> abstract level. Like for an expression like `a + b` generating
>> a call to
>> a helper function like `send(_var_a, SYMBOL(":+"), _var_b);`,
>> and hoping
>> that the compiler backend can eliminate this in some cases.
>
> It's implemented on top of Objective-C.
This makes sense, Objective-C can cope with classes that change
at runtime. Singleton methods are probably more challenging,
though...
More information about the Digitalmars-d
mailing list