Re: How to import modules from another folder ?

2020-05-13 Thread Vinod K Chandran via Digitalmars-d-learn
On Wednesday, 13 May 2020 at 22:10:02 UTC, Vinod K Chandran wrote: Hi all, I am practicing some win32 api coding in D. So far so good. But when i tried to import some d files from another folder, i wonder how do this. This is my folder structure. --> Source Folder --> app.d //This is

How to import modules from another folder ?

2020-05-13 Thread Vinod K Chandran via Digitalmars-d-learn
Hi all, I am practicing some win32 api coding in D. So far so good. But when i tried to import some d files from another folder, i wonder how do this. This is my folder structure. --> Source Folder --> app.d //This is my main file. I am importing guiLib in this main file. -->

Re: How to import modules?

2012-12-04 Thread Mike Parker
On Tuesday, 4 December 2012 at 16:53:33 UTC, js.mdnq wrote: Thanks, I simply imported the modules into the project and I guess visual D added them to be compiled in on the command line. For now this will work fine. Maybe eventually I'll write a utility that will build up a command line to in

Re: How to import modules?

2012-12-04 Thread Ali Çehreli
On 12/03/2012 08:31 PM, js.mdnq wrote: I created a .d file having a class with the modules tag at the top and everything public. I put it in a dir and used the -I flag to include the path. When I import the file I get an undefined method. I had written a short chapter about that topic: http:

Re: How to import modules?

2012-12-04 Thread js.mdnq
On Tuesday, 4 December 2012 at 07:17:15 UTC, Mike Parker wrote: On Tuesday, 4 December 2012 at 04:31:40 UTC, js.mdnq wrote: I created a .d file having a class with the modules tag at the top and everything public. I put it in a dir and used the -I flag to include the path. When I import the fi

Re: How to import modules?

2012-12-03 Thread Mike Parker
On Tuesday, 4 December 2012 at 04:31:40 UTC, js.mdnq wrote: I created a .d file having a class with the modules tag at the top and everything public. I put it in a dir and used the -I flag to include the path. When I import the file I get an undefined method. 1. Do I need to compile the .d fil

How to import modules?

2012-12-03 Thread js.mdnq
I created a .d file having a class with the modules tag at the top and everything public. I put it in a dir and used the -I flag to include the path. When I import the file I get an undefined method. 1. Do I need to compile the .d file into a lib or can I just import the .d and have it included d

Re: import/modules

2010-06-26 Thread BCS
Hello marksibly, BTW, whatever client you are using is generating text that, for me, renders without spaces. I suspect a code page/UTF/whatever issue. Hi, Dnewbieherewithafewimport/modulerelatedquestions. Ihaveatestprojectwiththefollowingdir/filelayout: c:\test.d c:\testmod\test2.d Themodu

Re: import/modules

2010-06-24 Thread bearophile
marksibly: > D newbie here with a few import/module related questions. Welcome here :-) Are your questions relative to the latest D2 version or D1? Keep in mind that D1 and D2 module system has several bugs. > ...doesn't work - can't find the second module. > What am I doing wrong? Or is this ju

import/modules

2010-06-24 Thread marksibly
Hi, D�newbie�here�with�a�few�import/module�related�questions. I�have�a�test�project�with�the�following�dir/file�layout: c:\test.d c:\testmod\test2.d The�modules�reference�each�other�via�imports�(very nice!)�and�it�all compiles�fine�as�long�as�I�specify�both�modules�on�the�dmd�command line,�eg: