www.digitalmars.com         C & C++   DMDScript  

D - modules and functions

reply Dominik Egarter <dominik.egarter aon.at> writes:
Hello!

I am really new programming in D. Can anybody show me how to implement 
functions in a module and how to use them???

Thx, Dominik
Nov 10 2003
parent reply J C Calvarese <jcc7 cox.net> writes:
Dominik Egarter wrote:
 Hello!
 
 I am really new programming in D. Can anybody show me how to implement 
 functions in a module and how to use them???
 
 Thx, Dominik 
I've attached a simple example. If you're looking for more simple examples, you might want to look the examples and tutorial on my webpage. (Some of them may be a little out of date since all of the standard modules have been renamed in the latest version of DMD.) Justin http://jcc_7.tripod.com/d/
Nov 10 2003
parent Dominik Egarter <dominik.egarter aon.at> writes:
J C Calvarese schrieb:

 I've attached a simple example.
 
 If you're looking for more simple examples, you might want to look the 
 examples and tutorial on my webpage.  (Some of them may be a little out 
 of date since all of the standard modules have been renamed in the 
 latest version of DMD.)
 
 Justin
 http://jcc_7.tripod.com/d/
Thanks a lot, my problem was that I did not compile and link them together: i used dmd mainfile.d and dmd mod.d, but with the makefile it really works. thx, dominik.
Nov 11 2003