[OT] Re: Andrei's list of barriers to D adoption

jmh530 via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 10 10:36:02 PDT 2016


On Friday, 10 June 2016 at 17:02:06 UTC, Adam D. Ruppe wrote:
>
> https://github.com/adamdruppe/arsd/blob/master/script.d#L879
>
> The function is pretty simple: interpret the left hand side 
> (here it is 1, so it yields int(1)), interpret the right hand 
> side (yields int(2)), combine them with the operator ("+") and 
> return the result.
>
> Notice that interpreting the left hand side is a recursive call 
> to the interpret function - it can be arbitrarily complex, and 
> the recursion will go all the way down, then all the way back 
> up to get the value.

Ah, it produces mixin("1+2") and evaluates that.

What's the PrototypeObject sc I see everywhere doing?


More information about the Digitalmars-d mailing list