LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-24-2011, 02:38 PM   #16
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Rep: Reputation: Disabled

Quote:
Originally Posted by youarefunny View Post
This doesn't work for me. I get linking issues.
[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:

Code:
$cat moduleA.d
import moduleB;
void main()
{
        foo();
}

$cat moduleB.d
import std.stdio;
void foo()
{
        writeln("Hello");
}

$rdmd --build-only -ofapp moduleA.d
$./app
Hello
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).
 
Old 09-04-2011, 09:12 PM   #17
youarefunny
Member
 
Registered: Mar 2010
Distribution: Arch Linux, FreeBSD
Posts: 31

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by youarefunny View Post
This doesn't work for me. I get linking issues.

Same deal here on Linux

Last edited by youarefunny; 09-04-2011 at 09:13 PM.
 
Old 10-26-2011, 04:25 PM   #18
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Rep: Reputation: Disabled
RDMD fixed

That was indeed a bug in RDMD. I submitted a pull request and it's now fixed in the RDMD that comes with DMD 2.056.
 
Old 04-10-2012, 10:59 PM   #19
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Rep: Reputation: 167Reputation: 167
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!).
 
Old 04-11-2012, 06:15 AM   #20
youarefunny
Member
 
Registered: Mar 2010
Distribution: Arch Linux, FreeBSD
Posts: 31

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Andy Alkaline View Post
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.
 
  


Reply

Tags
language, programming, programming language



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 05:16 AM
Which programming language top111 Linux - Newbie 8 08-22-2001 07:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration