D - more or less power than C++?
Derek Parnell
derek at psych.ward
Sat Mar 4 05:13:56 PST 2006
On Sat, 04 Mar 2006 21:18:24 +1100, Johan Granberg
<lijat.meREM at OVEgmail.com> wrote:
> 2. as far as I know no way of inporting somthing in a parent directory
> (as C++ #include "../myheader.hpp")
You can, only its not coded in the source file. Instead you do this via
the compiler's "-I" switch.
//---- test.d ---
import myheader;
then compile it with ...
dmd test ../myheader -I..
or
build test -I..
--
Derek Parnell
Melbourne, Australia
More information about the Digitalmars-d
mailing list