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 see

Non-blocking UDP calls using std.socket

2014-12-17 Thread Andre Artus via Digitalmars-d-learn
I've written a small program that uses UdpSocket (std.socket) to query a DNS server for selected records. It works as expected, but I would like to try a non-blocking approach. The last time I wrote socket code (without a supporting library) was over a decade ago, and even then it was not my

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 a

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: 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,

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 correct(a

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 fil