www.digitalmars.com         C & C++   DMDScript  
Archives

D Programming
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger
D.gnu
D

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



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