Re: The Right Approach to Exceptions

2012-02-18 Thread Alf P. Steinbach
On 19.02.2012 02:17, H. S. Teoh wrote: The basic problem with C++ exceptions is that it allows you to throw literally *anything*. Which is nice and generous, but not having a common root to all exceptions cripples the system, because there is no functionality that can be depended upon, like

Re: [your code here]

2012-02-17 Thread Alf P. Steinbach
On 18.02.2012 02:39, H. S. Teoh wrote: // Outputs a randomly selected line from standard input with equal // likelihood. import std.random; import std.stdio; void main() { auto n = 0; string choice; foreach (line; stdin.byLine()) { n++; if

Re: VisualD Console WIndow Disappears

2012-02-15 Thread Alf P. Steinbach
On 15.02.2012 08:27, RedShift wrote: So, I'm just starting to get into D, using the extension for VS called Visual D. Is there any way to stop the console from disappearing like in C++? Like C + F5 (which doesn't seem to work). Or like a getline? This absolutely seems like a bug in Visual D,

Re: const ref and rvalues

2012-02-15 Thread Alf P. Steinbach
On 16.02.2012 00:46, Trass3r wrote: I posted this question several times already and no answer yet, why is allowing temporaries bind to ref const params bad again? It's supported in C++, isn't it supported by D? Cheers, - Alf (utter newbie)

Re: newbie - hey walter, improvement potentials for installer

2012-02-14 Thread Alf P. Steinbach
On 13.02.2012 20:13, Walter Bright wrote: Hi Alf! Welcome! Thanks. On 2/12/2012 4:02 PM, Alf P. Steinbach wrote: [snip] * Improvement potential #5 -- The description of Windows prog. Following main site's links to [http://d-programming-language.org/windows.html], I found a real

Re: newbie - hey walter, improvement potentials for installer

2012-02-14 Thread Alf P. Steinbach
On 14.02.2012 22:21, Ali Çehreli wrote: On 02/14/2012 11:45 AM, Alf P. Steinbach wrote: On 13.02.2012 20:13, Walter Bright wrote: Hi Alf! Welcome! Thanks. Welcome! :) I've learned a lot from you on comp.lang.c++.moderated. It is great to see you here as well. If you don't mind my

Re: newbie -- how to build module?

2012-02-13 Thread Alf P. Steinbach
On 13.02.2012 12:48, James Miller wrote: Somewhat off topic, but Alf, I have noticed you posting a few times, Uhm, 2 times. I think newbie questions are better suited to the digitalmars.D.learn mailing list. I am sure that if but the right mindset was brought to bear, the D community and

Re: newbie -- how to build module?

2012-02-13 Thread Alf P. Steinbach
On 13.02.2012 10:33, Walter Bright wrote: On 2/12/2012 11:45 PM, Alf P. Steinbach wrote: Anyway, I haven't yet started delving into the language documentation or any tutorials, just used gut-feeling, so I'd appreciate discussion of how to make this my first D console program less non-idiomatic

Re: newbie -- how to build module?

2012-02-13 Thread Alf P. Steinbach
On 13.02.2012 13:50, David Nadlinger wrote: On 2/13/12 1:13 PM, Alf P. Steinbach wrote: I am sure that if but the right mindset was brought to bear, the D community and in particular those with some responsibility for the toolset and language, could learn as much from my current 2 postings as I

Re: newbie -- how to build module?

2012-02-13 Thread Alf P. Steinbach
On 13.02.2012 19:52, Rainer Schuetze wrote: Hi, On 13.02.2012 08:45, Alf P. Steinbach wrote: I first started with a Windows message box program and installing an IDE. I'm now using the VisualD plug-in with the Visual Studio 10 Shell, after battling a bit with installation of service pack 1

newbie - hey walter, improvement potentials for installer

2012-02-12 Thread Alf P. Steinbach
Hi I just installed D 2.x. * Improvement potential #1 -- installer description. It was not clear to me that the first download is a full offline installer. In ignorance I used the one that downloads from web. The web page can possibly be mucho improved! :-) * Improvement

newbie -- how to build module?

2012-02-12 Thread Alf P. Steinbach
I first started with a Windows message box program and installing an IDE. I'm now using the VisualD plug-in with the Visual Studio 10 Shell, after battling a bit with installation of service pack 1 for Visual Studio. VisualD works, sort of, except the devs forgot that the resource compiler