Re: Why is one d file compiled into two files object file executable.

2015-02-11 Thread Andre Artus via Digitalmars-d-learn
On Wednesday, 11 February 2015 at 07:42:31 UTC, Kagamin wrote: On Wednesday, 11 February 2015 at 05:08:16 UTC, Venkat Akkineni wrote: I am coming from Java. What is the purpose of an object file why is it generated at compile time in addition to an executable. I know C generates an object

Re: How to write asia characters on console?

2015-02-11 Thread Andre Artus via Digitalmars-d-learn
On Sunday, 8 February 2015 at 05:56:22 UTC, Lave Zhang wrote: Hi, My first D program is like this: --- import std.stdio; void main(string[] args) { dstring s1 = hello你好d; writeln(s1); } --- But the output is not

Re: Why is one d file compiled into two files object file executable.

2015-02-10 Thread Andre Artus via Digitalmars-d-learn
On Wednesday, 11 February 2015 at 05:08:16 UTC, Venkat Akkineni wrote: Hi I am coming from Java. What is the purpose of an object file why is it generated at compile time in addition to an executable. I know C generates an object file too, but I don't know what the use is. Hi Venkat,

Non-blocking UDP calls using std.socket

2014-12-17 Thread Andre Artus via Digitalmars-d-learn
would appreciate a code snippet or link to a sample. Thanks, Andre Artus

Re: Non-blocking UDP calls using std.socket

2014-12-17 Thread Andre Artus via Digitalmars-d-learn
-- snip -- Have you looked at vibe.d? https://github.com/rejectedsoftware/vibe.d/blob/master/examples/udp/source/app.d Thanks Rikki, I saw that before, but I was left with the impression that its doing blocking calls in a thread (which could very well be the simplest answer). I'll give it

Re: Non-blocking UDP calls using std.socket

2014-12-17 Thread Andre Artus via Digitalmars-d-learn
-- snip -- https://github.com/etcimon/libasync http://code.dlang.org/packages/libevent http://code.dlang.org/packages/libev http://code.dlang.org/packages/libuv Thanks Daniel, These links look interesting. Perhaps libasync could do the trick.

Re: How to I call D code from C# Project?

2014-06-19 Thread Andre Artus via Digitalmars-d-learn
On Wednesday, 18 June 2014 at 20:55:09 UTC, GoD wrote: Hi. I want use my D code in C# How can I do this? D, very fast programming language. But I can not WinForm applications from D. I'm using C# for WinForm applications. But, also i want to use D code for my project. for example; I'm

Re: Getting the current datetime converted into a string for writing to stdout

2014-03-30 Thread Andre Artus
On Saturday, 29 March 2014 at 05:01:14 UTC, Gary Miller wrote: -- SNIP -- I only need it down to the second and from my current machine so I don't need to use any of the more accurate clocks used for benchmarking right now. On Saturday, 29 March 2014 at 09:30:44 UTC, Gary Willoughby wrote:

Re: Freshly Compiled DMD + Visual Studio

2013-08-27 Thread Andre Artus
On Tuesday, 27 August 2013 at 13:32:06 UTC, Meta wrote: On Tuesday, 27 August 2013 at 12:09:22 UTC, Dmitry Olshansky wrote: Linker errors are typically solve by doing clean, then rebuilding from source. There is a decent chance that you (or VisualD) do separate compilation and old object files

Re: Freshly Compiled DMD + Visual Studio

2013-08-27 Thread Andre Artus
On Tuesday, 27 August 2013 at 14:04:09 UTC, Meta wrote: On Tuesday, 27 August 2013 at 13:55:55 UTC, Andre Artus wrote: Check that your library paths are all set to the path for of the newly built Phobos. It may be that it's trying to link in the old library. Of course it was something

Re: Limited Semi-PolyMorphic (LSP) structs?

2013-08-27 Thread Andre Artus
Era, I haven't had time to go through your everything you wrote here but are you looking to create some form of discriminated union (AKA tagged union) using D structs? Do you have a specific problem you need to solve, or are you just exploring the language?

Re: RePost: Help to convert a code to D

2013-08-26 Thread Andre Artus
On Monday, 26 August 2013 at 13:30:38 UTC, Alexandre wrote: Hi :) I'm starting with D language... and, I try to convert a C# code to D... So, my C# code, I get file informations, and, I create folders with all days of month of specific year... So, that is my C# code... using System; using

Re: RePost: Help to convert a code to D

2013-08-26 Thread Andre Artus
On Monday, 26 August 2013 at 13:30:38 UTC, Alexandre wrote: Hi :) I'm starting with D language... and, I try to convert a C# code to D... So, my C# code, I get file informations, and, I create folders with all days of month of specific year... So, that is my C# code... -- SNIP -- So, to

Re: RePost: Help to convert a code to D

2013-08-26 Thread Andre Artus
On Monday, 26 August 2013 at 21:43:20 UTC, Era Scarecrow wrote: I wonder if any of this would make any more sense if you threw it through Google translate.. (maybe the comments and months?) I did just that :) On Monday, 26 August 2013 at 20:14:34 UTC, Andre Artus wrote: Hi Alexandre

Re: RePost: Help to convert a code to D

2013-08-26 Thread Andre Artus
On Monday, 26 August 2013 at 23:32:26 UTC, Andre Artus wrote: On Monday, 26 August 2013 at 13:30:38 UTC, Alexandre wrote: Hi :) I'm starting with D language... and, I try to convert a C# code to D... So, my C# code, I get file informations, and, I create folders with all days of month

Re: Is -1 7 ?

2013-08-14 Thread Andre Artus
On Sunday, 11 August 2013 at 17:01:46 UTC, Yota wrote: On Friday, 9 August 2013 at 17:35:18 UTC, monarch_dodra wrote: On Friday, 9 August 2013 at 15:28:10 UTC, Manfred Nowak wrote: michaelc37 wrote: WTF - -1 is greater than 7 From the docs: It is an error to have one operand be signed

Re: Is -1 7 ?

2013-08-14 Thread Andre Artus
On Wednesday, 14 August 2013 at 18:08:56 UTC, Ary Borenszweig wrote: On 8/14/13 2:26 PM, Andre Artus wrote: On Sunday, 11 August 2013 at 17:01:46 UTC, Yota wrote: On Friday, 9 August 2013 at 17:35:18 UTC, monarch_dodra wrote: On Friday, 9 August 2013 at 15:28:10 UTC, Manfred Nowak wrote

Re: Which option is faster...

2013-08-07 Thread Andre Artus
It's a long story and I will return in a few months and give you the whole story, but right now, time is not on my side. I have answers for all the questions you folks have asked, and I appreciate all the input. I have the answer that I was looking for, so in a few months, I will come back and

Re: Which option is faster...

2013-08-06 Thread Andre Artus
On Tuesday, 6 August 2013 at 12:32:13 UTC, jicman wrote: On Tuesday, 6 August 2013 at 04:10:57 UTC, Andre Artus wrote: On Monday, 5 August 2013 at 13:59:24 UTC, jicman wrote: Greetings! I have this code, foreach (...) { if (std.string.tolower(fext[0]) == doc || std.string.tolower(fext[0

Re: Logging and tracing in D

2013-08-06 Thread Andre Artus
-- snip-- and you get pretty formatted message in console(add log file writer if needed), and you get smart logging for free, in that way it will be generated only for debug mode(in release it will be skipped because of debug specifier). Thanks, can I take it that there is no official

Re: Logging and tracing in D

2013-08-06 Thread Andre Artus
David wrote: Am 06.08.2013 19:22, schrieb Andre Artus: -- snip-- and you get pretty formatted message in console(add log file writer if needed), and you get smart logging for free, in that way it will be generated only for debug mode(in release it will be skipped because of debug specifier

Re: Logging and tracing in D

2013-08-06 Thread Andre Artus
-- snip -- I take it that it hasn't been documented yet, at least I could not find it on dlang.org. It's currently in the review queue: http://wiki.dlang.org/Review_Queue but marked on hold/suspended. Thanks, I'll check it out later.

Re: Which option is faster...

2013-08-05 Thread Andre Artus
On Monday, 5 August 2013 at 13:59:24 UTC, jicman wrote: Greetings! I have this code, foreach (...) { if (std.string.tolower(fext[0]) == doc || std.string.tolower(fext[0]) == docx || std.string.tolower(fext[0]) == xls || std.string.tolower(fext[0]) == xlsx ||

Logging and tracing in D

2013-08-05 Thread Andre Artus
What is the recommended approach for adding logging and tracing to D apps? Is there a library for it?

Re: Hello D-world!, imports South African D-naughts

2013-08-03 Thread Andre Artus
On Saturday, 3 August 2013 at 06:51:40 UTC, evilrat wrote: On Saturday, 3 August 2013 at 05:24:11 UTC, Andre Artus wrote: On Saturday, 3 August 2013 at 04:38:13 UTC, Andre Artus wrote: Hello D-world! My name is Andre Artus, and I'm a programmer from Johannesburg, South Africa. I'm

Re: Component Programming example

2013-08-03 Thread Andre Artus
On Friday, 2 August 2013 at 17:03:44 UTC, Justin Whear wrote: On Fri, 02 Aug 2013 18:59:12 +0200, Jonathan A Dunlap wrote: The example: http://www.drdobbs.com/architecture-and-design/component-programming-in- d/240008321?pgno=4 import std.stdio; import std.array; import std.algorithm;

Re: Hello D-world!, imports South African D-naughts

2013-08-03 Thread Andre Artus
On Saturday, 3 August 2013 at 09:24:25 UTC, Bosak wrote: The D Programming Language is kind of old and out of date for the current version of D. There aren't many books for D so you have not much choice. Attributes can be declared with 3 different syntaxes. For example one could write: //--1--

Hello D-world!, imports South African D-naughts

2013-08-02 Thread Andre Artus
Hello D-world! My name is Andre Artus, and I'm a programmer from Johannesburg, South Africa. I'm relatively new to D, but so far quite impressed by it. I have been reading Andrei Alexandrescu's The D Programming Language and Ali Çehreli's Programming in D to get up to speed. Both are quite

Re: Hello D-world!, imports South African D-naughts

2013-08-02 Thread Andre Artus
On Saturday, 3 August 2013 at 04:38:13 UTC, Andre Artus wrote: Hello D-world! My name is Andre Artus, and I'm a programmer from Johannesburg, South Africa. I'm relatively new to D, but so far quite impressed by it. I have been reading Andrei Alexandrescu's The D Programming Language