www.digitalmars.com         C & C++   DMDScript  

DMDScript - Walter: One more question

reply adzheng <adzheng_member pathlink.com> writes:
Is there a way to do a runtime "include" to act like #include in C++? It seems
like I always need to know all the files and add them through C++ code -
setInclude. Could it be possible to include files runtime in JS? Thanks in
advance!
Nov 04 2005
parent "Walter Bright" <newshound digitalmars.com> writes:
"adzheng" <adzheng_member pathlink.com> wrote in message
news:dkgtkm$52b$1 digitaldaemon.com...
 Is there a way to do a runtime "include" to act like #include in C++? It

 like I always need to know all the files and add them through C++ code -
 setInclude. Could it be possible to include files runtime in JS? Thanks in
 advance!

The script interpreter should be ECMA compliant, and adding include files breaks that. But you can add it to your version, shouldn't be a problem.
Nov 05 2005