Re: extern(C++) linker errors

2015-04-22 Thread bitwise via Digitalmars-d-learn
On Wed, 22 Apr 2015 02:14:40 -0400, Dan Olson zans.is.for.c...@yahoo.com wrote: bitwise bitwise@gmail.com writes: I am trying to interface to C++, and getting linker errors. Below are my 3 source files and 2 build scripts with their associated errors. Can anyone see what I'm doing wrong?

Re: Download DDMD?

2015-04-22 Thread jkpl via Digitalmars-d-learn
On Wednesday, 22 April 2015 at 09:26:37 UTC, jkpl wrote: On Wednesday, 22 April 2015 at 07:57:40 UTC, Jeremiah DeHaan wrote: Just curious, but I was wondering if there was a 2.067 DDMD available for download somewhere for Windows. If not, then are there any special build instructions I need to

Re: Reading whitespace separated strings from stdin?

2015-04-22 Thread TheGag96 via Digitalmars-d-learn
On Tuesday, 21 April 2015 at 03:44:16 UTC, weaselcat wrote: snip Wow, that's a damn good solution... I didn't know that readln() could take an argument that it stops at once it finds. Now the thing is, this program is supposed to be a reverse Polish notation calculator. A human using this

Re: Download DDMD?

2015-04-22 Thread jkpl via Digitalmars-d-learn
On Wednesday, 22 April 2015 at 15:06:17 UTC, Jeremiah DeHaan wrote: On Wednesday, 22 April 2015 at 09:26:37 UTC, jkpl wrote: On Wednesday, 22 April 2015 at 07:57:40 UTC, Jeremiah DeHaan wrote: Just curious, but I was wondering if there was a 2.067 DDMD available for download somewhere for

Re: Download DDMD?

2015-04-22 Thread Jeremiah DeHaan via Digitalmars-d-learn
On Wednesday, 22 April 2015 at 09:26:37 UTC, jkpl wrote: On Wednesday, 22 April 2015 at 07:57:40 UTC, Jeremiah DeHaan wrote: Just curious, but I was wondering if there was a 2.067 DDMD available for download somewhere for Windows. If not, then are there any special build instructions I need to

Re: Structural exhaustive matching

2015-04-22 Thread weaselcat via Digitalmars-d-learn
On Wednesday, 22 April 2015 at 04:54:39 UTC, Martin Nowak wrote: On Tuesday, 21 April 2015 at 15:36:28 UTC, Jadbox wrote: What's the best equivalent to Rust's structural enum/pattern (match)ing? Is it also possible to enforce exhaustive matches? Basically, I'm curious on what the best way to

Re: extern(C++) linker errors

2015-04-22 Thread Dan Olson via Digitalmars-d-learn
bitwise bitwise@gmail.com writes: I am trying to interface to C++, and getting linker errors. Below are my 3 source files and 2 build scripts with their associated errors. Can anyone see what I'm doing wrong? Hi, I think both examples need libstdc++ added when you link (-L-lstdc++). That

Re: how does isInputRange(T) actually work?

2015-04-22 Thread kevin via Digitalmars-d-learn
On Tuesday, 21 April 2015 at 19:42:42 UTC, anonymous wrote: On Tuesday, 21 April 2015 at 19:17:56 UTC, kevin wrote: On Tuesday, 21 April 2015 at 19:13:34 UTC, Meta wrote: On Tuesday, 21 April 2015 at 19:11:43 UTC, John Colvin wrote: On Tuesday, 21 April 2015 at 19:06:39 UTC, kevin wrote:

GetModuleHandle

2015-04-22 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. I am trying to use the Excel API with latest release dmd on Win 32. It looks like GetModuleHandle isn't in the D windows header anymore. Should I try to use GetModuleHandleA or B ? Thoughts?

Re: string to thread

2015-04-22 Thread armando sano via Digitalmars-d-learn
Is there any update on this? This question of the distinction between reading/writing to a file stream vs to a string seems recurrent. I am interested in writing to a string and am wondering if there is a reason for having to use explicitly the convenience functions std.conv.text() (or

Re: how does isInputRange(T) actually work?

2015-04-22 Thread Vlad Levenfeld via Digitalmars-d-learn
On Wednesday, 22 April 2015 at 21:22:43 UTC, Meta wrote: That makes sense. It seems to me that D has very... special but effective syntax. I'm having a hard time remembering all the keywords and expression forms (especially of IsExpression) but it's definitely a vast improvement over C++'s

Startup files for STM32F4xx

2015-04-22 Thread Jens Bauer via Digitalmars-d-learn
I've now created a few startup files for the STM32F4xx microcontrollers. You can grab them here ... http://d.gpio.dk/cgi-bin/gitweb.cgi ... Unfortunately I have no 'read-only' checkout on my git-server, but I'll be happy to make a tar.bz2 archive upon request.

Re: how does isInputRange(T) actually work?

2015-04-22 Thread Meta via Digitalmars-d-learn
That makes sense. It seems to me that D has very... special but effective syntax. I'm having a hard time remembering all the keywords and expression forms (especially of IsExpression) but it's definitely a vast improvement over C++'s half baked pile of whatever. Thanks for the help, everyone.

Re: Startup files for STM32F4xx

2015-04-22 Thread Jens Bauer via Digitalmars-d-learn
On Thursday, 23 April 2015 at 04:48:16 UTC, Rikki Cattermole wrote: On 23/04/2015 2:41 p.m., Jens Bauer wrote: ... Unfortunately I have no 'read-only' checkout on my git-server, but I'll be happy to make a tar.bz2 archive upon request. Make a github mirror if you don't want to push it

Re: Startup files for STM32F4xx

2015-04-22 Thread Rikki Cattermole via Digitalmars-d-learn
On 23/04/2015 4:53 p.m., Jens Bauer wrote: On Thursday, 23 April 2015 at 04:48:16 UTC, Rikki Cattermole wrote: On 23/04/2015 2:41 p.m., Jens Bauer wrote: ... Unfortunately I have no 'read-only' checkout on my git-server, but I'll be happy to make a tar.bz2 archive upon request. Make a github

Re: Startup files for STM32F4xx

2015-04-22 Thread Rikki Cattermole via Digitalmars-d-learn
On 23/04/2015 2:41 p.m., Jens Bauer wrote: I've now created a few startup files for the STM32F4xx microcontrollers. You can grab them here ... http://d.gpio.dk/cgi-bin/gitweb.cgi ... Unfortunately I have no 'read-only' checkout on my git-server, but I'll be happy to make a tar.bz2 archive upon

Re: GetModuleHandle

2015-04-22 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 22 April 2015 at 19:37:35 UTC, John Chapman wrote: On Wednesday, 22 April 2015 at 18:31:20 UTC, Laeeth Isharc wrote: Hi. I am trying to use the Excel API with latest release dmd on Win 32. It looks like GetModuleHandle isn't in the D windows header anymore. Should I try to

Download DDMD?

2015-04-22 Thread Jeremiah DeHaan via Digitalmars-d-learn
Just curious, but I was wondering if there was a 2.067 DDMD available for download somewhere for Windows. If not, then are there any special build instructions I need to build it? I kind of just want to try a couple of things, so I would rather I not have to build it if I can avoid it.

Re: Download DDMD?

2015-04-22 Thread jkpl via Digitalmars-d-learn
On Wednesday, 22 April 2015 at 07:57:40 UTC, Jeremiah DeHaan wrote: Just curious, but I was wondering if there was a 2.067 DDMD available for download somewhere for Windows. If not, then are there any special build instructions I need to build it? I kind of just want to try a couple of things,