LinuxQuestions.org
Help answer threads with 0 replies.
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, 03:38 PM   #16
Abscissa256
Member
 
Registered: Aug 2011
Posts: 74

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, 10: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 10:13 PM.
 
Old 10-26-2011, 05:25 PM   #18
Abscissa256
Member
 
Registered: Aug 2011
Posts: 74

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, 11:59 PM   #19
Andy Alkaline
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian-wheezy-amd64, LFS 7.1
Posts: 355

Rep: Reputation: 33
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, 07: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 07:16 AM.
 
  


Reply

Tags
language, programming, programming language


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:16 AM
Which programming language top111 Linux - Newbie 8 08-22-2001 08:21 PM


All times are GMT -5. The time now is 06:38 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration