Thread overview
Calling DMDScript from D with eval()?
Jun 17, 2005
bobef
Jun 18, 2005
Walter
Jun 20, 2005
bobef
June 17, 2005
I think there was eval() function in some javascript version. Is there such in DMDScript? And if it is - is it 'callable' from D?
June 18, 2005
"bobef" <bobef@lessequal.com> wrote in message news:d8ucqs$166c$1@digitaldaemon.com...
> I think there was eval() function in some javascript version. Is there
> such in DMDScript?

Yes.

> And if it is - is it 'callable' from D?

Not directly. It still needs the engine to be set up first.


June 20, 2005
Walter wrote:
> "bobef" <bobef@lessequal.com> wrote in message
> news:d8ucqs$166c$1@digitaldaemon.com...
> 
>>I think there was eval() function in some javascript version. Is there
>>such in DMDScript?
> 
> 
> Yes.
> 
> 
>>And if it is - is it 'callable' from D?
> 
> 
> Not directly. It still needs the engine to be set up first.
> 
> 

Maybe if you make such function to be called directly from D, although it will be bit slower maybe, it will answer most of the questions "how to call this, how to call that from D"...