ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[We could move this over to another thread (or the digitalmars.D.learn newsgroup) if you'd like...]
That's odd, I do that all the time and it always works. Can you post what exactly you have, and your exact command line? (And which version of DMD and OS?) Also, try this:
If that doesn't work, then you may have some other problem, so make sure this works:
Code:
$dmd -ofapp moduleA.d moduleB.d
I just tried all that with the latest DMD (2.054), and it worked fine for me. Admittedly, I did it on windows since I don't have my linux box on at the moment, but I do that sort of thing all the time on linux, too (Ubuntu 10.04).
I only heard about the D programming language earlier this evening. Reading the opinions in this thread I didn't come across any compelling reasons not to try it out sometime. Is there anything which could be added to these reviews? I'm a novice at C and even more of a novice with C++. It seems that every time (for the last 20 years) I get the urge to program, I spend some time learning, write some simple programs, and after a couple months I can't think of any programs I want to do so lose all interest, and then a couple years go by. At which point, if I get the urge again, I have to relearn what I'd forgotten. (Though I don't expect D to have a feature that would magically cure me of that!).
I only heard about the D programming language earlier this evening. Reading the opinions in this thread I didn't come across any compelling reasons not to try it out sometime. Is there anything which could be added to these reviews? I'm a novice at C and even more of a novice with C++. It seems that every time (for the last 20 years) I get the urge to program, I spend some time learning, write some simple programs, and after a couple months I can't think of any programs I want to do so lose all interest, and then a couple years go by. At which point, if I get the urge again, I have to relearn what I'd forgotten. (Though I don't expect D to have a feature that would magically cure me of that!).
All the things I said about D are not major issues, just a matter of polish and a lot of personal taste.
The built in arrays are not so bad because they have "slices" which allow other classes to act as arrays (although you still can't pass them into functions designed for arrays). I still don't like the idea of closures. In my opinion, if you are returning something from a function that has state you should be using a class. I understand closures are good for delegates and that is why my current stance is closures should not be allowed to be assigned a name outside of the defining function.
After getting off topic. D is a fantastic language, I am subscribed to the newsgroup and fool around with it all of the time. The only reason I don't use it seriously is because the projects I am working on are C/C++ projects and Firefox extensions. It is defiantly worth learning and if you are looking for something to do there are many libraries that need to be created.
Last edited by youarefunny; 04-11-2012 at 06:16 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.