Starting with D

2011-02-06 Thread Julius
Hi there, i'm all new to D but not new to programming in general. I'd like to try D but i didn't find a nice tutorial yet. I don't want to read a whole book, I just want to get the basics so I can start. Can you help me find something like that? Best regards, Julius

Re: Starting with D

2011-02-06 Thread Caligo
On Sun, Feb 6, 2011 at 5:35 PM, Julius wrote: > Hi there, > i'm all new to D but not new to programming in general. > I'd like to try D but i didn't find a nice tutorial yet. > I don't want to read a whole book, I just want to get the basics so I can > start. > Can you help me find something like

Re: Starting with D

2011-02-07 Thread Peter Alexander
On 6/02/11 11:35 PM, Julius wrote: Hi there, i'm all new to D but not new to programming in general. I'd like to try D but i didn't find a nice tutorial yet. I don't want to read a whole book, I just want to get the basics so I can start. Can you help me find something like that? Best regards, J

Re: Starting with D

2011-02-07 Thread Julius
== Quote from Peter Alexander (peter.alexander...@gmail.com)'s article > On 6/02/11 11:35 PM, Julius wrote: > > Hi there, > > i'm all new to D but not new to programming in general. > > I'd like to try D but i didn't find a nice tutorial yet. > > I don't want to read a whole book, I just want to ge

Re: Starting with D

2011-02-07 Thread Jacob Carlborg
On 2011-02-07 15:20, Julius wrote: == Quote from Peter Alexander (peter.alexander...@gmail.com)'s article On 6/02/11 11:35 PM, Julius wrote: Hi there, i'm all new to D but not new to programming in general. I'd like to try D but i didn't find a nice tutorial yet. I don't want to read a whole bo

Re: Starting with D

2011-02-07 Thread Jesse Phillips
something like that? > > Best regards, Julius Well there is the "Starting with D page on Wiki4D http://www.wikiservice.at/d/wiki.cgi?D__Tutorial/StartingWithD And also a related page for those comping from another language http://www.wikiservice.at/d/wiki.cgi?ComingFrom Any improvement to these pages as you learn D are welcome.

[Starting with D] d2html.d issues an error

2017-05-25 Thread Oleksii via Digitalmars-d-learn
Hi everyone, Could you please help me? I'm get the following error from all.sh: $ /e/D/dmd2/windows/bin/shell.exe all.sh shell 1.05 ..\..\windows\bin\dmd d2html d2html.d(18): Error: module stream is in file 'std\stream.d' which cannot be read import path[0] = E:\D\dmd2\windows\bin\..

Just starting with D (linking with C++)

2017-10-27 Thread sivakon via Digitalmars-d-learn
Hi, Just started to work with D. Great language. I want to use C++ libraries for machine learning and deep learning. How do I add C++ libraries to my d code. For example, //sample.cpp #include using namespace std; int foo(int i, int j, int k) { cout << "i = " << i << endl; cout <<

Re: [Starting with D] d2html.d issues an error

2017-05-25 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 25 May 2017 at 15:02:33 UTC, Oleksii wrote: Hi everyone, Could you please help me? I'm get the following error from all.sh: $ /e/D/dmd2/windows/bin/shell.exe all.sh shell 1.05 ..\..\windows\bin\dmd d2html d2html.d(18): Error: module stream is in file 'std\stream.d' which

Re: [Starting with D] d2html.d issues an error

2017-05-25 Thread Basile B. via Digitalmars-d-learn
On Thursday, 25 May 2017 at 15:02:33 UTC, Oleksii wrote: Hi everyone, Could you please help me? I'm get the following error from all.sh: $ /e/D/dmd2/windows/bin/shell.exe all.sh shell 1.05 ..\..\windows\bin\dmd d2html d2html.d(18): Error: module stream is in file 'std\stream.d' which

Re: Just starting with D (linking with C++)

2017-10-27 Thread Joakim via Digitalmars-d-learn
On Friday, 27 October 2017 at 17:14:20 UTC, sivakon wrote: Hi, Just started to work with D. Great language. I want to use C++ libraries for machine learning and deep learning. How do I add C++ libraries to my d code. For example, //sample.cpp #include using namespace std; int foo(int i,

Re: Just starting with D (linking with C++)

2017-10-27 Thread sivakon via Digitalmars-d-learn
On Friday, 27 October 2017 at 17:21:39 UTC, Joakim wrote: This should work: dmd foo.d Sample.o Just like the C examples from the D blog: https://dlang.org/blog/2017/10/25/dmd-windows-and-c/ Just used this! Got this error! sample.o: In function `foo(int, int, int)': sample.cpp:(.text+0x17):

Re: Just starting with D (linking with C++)

2017-10-27 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/27/17 1:43 PM, sivakon wrote: On Friday, 27 October 2017 at 17:21:39 UTC, Joakim wrote: This should work: dmd foo.d Sample.o Just like the C examples from the D blog: https://dlang.org/blog/2017/10/25/dmd-windows-and-c/ Just used this! Got this error! sample.o: In function `foo(int,

Re: Just starting with D (linking with C++)

2017-10-27 Thread Joakim via Digitalmars-d-learn
On Friday, 27 October 2017 at 17:43:08 UTC, sivakon wrote: On Friday, 27 October 2017 at 17:21:39 UTC, Joakim wrote: This should work: dmd foo.d Sample.o Just like the C examples from the D blog: https://dlang.org/blog/2017/10/25/dmd-windows-and-c/ Just used this! Got this error! sample.o

Re: Just starting with D (linking with C++)

2017-10-27 Thread codephantom via Digitalmars-d-learn
On Friday, 27 October 2017 at 17:14:20 UTC, sivakon wrote: I want to use C++ libraries for machine learning and deep learning. How do I add C++ libraries to my d code. on FreeBSD, I use: for C static binding: -- clang -c sample.c dmd -L-lc foo.d sample.o or ldc -L-lc foo.d

Re: Just starting with D (linking with C++)

2017-10-28 Thread sivakon via Digitalmars-d-learn
On Saturday, 28 October 2017 at 02:20:42 UTC, codephantom wrote: On Friday, 27 October 2017 at 17:14:20 UTC, sivakon wrote: I want to use C++ libraries for machine learning and deep learning. How do I add C++ libraries to my d code. on FreeBSD, I use: for C static binding: ---