C++ to D: Help please
Jesse Phillips
jessekphillips+D at gmail.com
Thu Feb 24 10:33:16 PST 2011
%u Wrote:
> I have no problems converting small problems. Hence why I'm not
> trying to convert small scripts. My problems are in understanding
> the inner workings of multimodule programs, how to create them,
> create the make file to use in comepiling them, and then since I'm
> reading C/C++ (which I don't know much about) but trying to learn
> D, how to do it correctly in D?
Well using one language you aren't familiar with to learn another is probably not the best strategy.
For one thing C++ uses namespaces and D uses modules. They are both about name-space but are very different approaches. If you want to learn about modules then write a simple application. Place all functions in one module/file and import that into a file that contains the main function. Then call $ dmd file1.d file2.d
More information about the Digitalmars-d-learn
mailing list