header filed functions

Hasan Aljudy hasan.aljudy at gmail.com
Wed May 10 01:16:24 PDT 2006


MM wrote:
> I just got d to run the opengl example (from the very nice Dmedia website)
> Simple things like where to place build and what to put in my path were the most
> difficult for me as I used to always use a nice IDE for my C programs.
> (Now I only need to make everything work without dmd having to sit in my root :)
> 
> but here my question:
> I used to always put all my functions in separate header files to make everthing
> clean (this works in an ide)
> 
> now what is the best way to keep all my functions neat and ordered in D.. or
> should I just do what I used to do?
> 
> thx
> 
> 
you don't need header, just import the .d file that contains the 
function you want.

import module_name;

just note: the module name is not exactly the file name. (it doesn't 
include the .d extension)



More information about the Digitalmars-d-learn mailing list