www.digitalmars.com         C & C++   DMDScript  

DMDScript - Calling DMDScript from D with eval()?

reply bobef <bobef lessequal.com> writes:
I think there was eval() function in some javascript version. Is there 
such in DMDScript? And if it is - is it 'callable' from D?
Jun 17 2005
parent reply "Walter" <newshound digitalmars.com> writes:
"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.
Jun 18 2005
parent bobef <bobef lessequal.com> writes:
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"...
Jun 20 2005