Interface file is generated wrong

2014-02-18 Thread Tolga Cakiroglu (tcak)
I have written a module as below: file: lib.d import core.sys.posix.dlfcn; private static this(){} private static ~this(){} public shared class Apps{ } --- This code is compiled with "-H" flag to generate an interface file. Generated interface file is below: file: lib.di // D import f

Re: Importing text file, path not found

2014-02-18 Thread Tolga Cakiroglu (tcak)
On Tuesday, 18 February 2014 at 08:45:16 UTC, Tolga Cakiroglu (tcak) wrote: I am testing with the import expression. I am using the "-J" flag while compiling. dmd app.d -J/home/user/include void main(){ auto test = json.parseJSON( import("/home/user/include/test.json")

Importing text file, path not found

2014-02-18 Thread Tolga Cakiroglu (tcak)
I am testing with the import expression. I am using the "-J" flag while compiling. dmd app.d -J/home/user/include void main(){ auto test = json.parseJSON( import("/home/user/include/test.json") ); } 1. Because I am giving the full path of that file to be imported. But compiler is complai