Re: How to use listener.d example?

2018-09-11 Thread Marcin via Digitalmars-d-learn
On Friday, 7 September 2018 at 17:00:21 UTC, Marcin wrote: I get it working in linux environment. I don't know why vibe-d get linker errors on win10. And I get it to work on windos dub --build=release

Re: thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
On Saturday, 8 September 2018 at 18:21:07 UTC, drug wrote: On 08.09.2018 20:59, Marcin wrote: void main() { snipped } This? https://run.dlang.io/is/SHyCXA Thanks :)

Re: thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
//Ten przyklad po prostu tworzy wątek w którym są trzy obiekty import core.thread; import std.stdio: write, writeln, writef, writefln; class Sinus{ double a; this(){writeln("No Args");} this(double a){writeln("U give 1 argument"); writeln(sin(a));}

Re: thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
https://run.dlang.io/is/PQkOfF How to make it work? void main() { import core.stdc.math : sin; import core.thread; import std.stdio : write, writeln, writef, writefln; class DerivedThread : Thread { double d; this() { super(); }

Re: thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
I made somthing else... it works at the moment. https://run.dlang.io/is/KdOeRz But i need somthing like this to work: https://run.dlang.io/is/lGD5YQ

thread phobos and creating threads

2018-09-08 Thread Marcin via Digitalmars-d-learn
Ive got problem with https://run.dlang.io/is/4a4CJp Why it prints 111 forever?

Re: How to use listener.d example?

2018-09-07 Thread Marcin via Digitalmars-d-learn
I get it working in linux environment. I don't know why vibe-d get linker errors on win10.

Re: How to use listener.d example?

2018-09-04 Thread Marcin via Digitalmars-d-learn
https://drive.google.com/open?id=1Qo6BYIZjaoxL_Z0TS9-vAN4ZgbTepkcR I've reinstalled in other location and rewrite whole example. I still get optlink error http://www.digitalmars.com/ctg/optlink.html

Re: How to use listener.d example?

2018-09-04 Thread Marcin via Digitalmars-d-learn
https://drive.google.com/open?id=1hC5SZ3VWX0iQoUO7KN0S-743x6FG9ER5 I give up Cant compile this vibe-d Ill get back to phobos

Re: How to use listener.d example?

2018-09-04 Thread Marcin via Digitalmars-d-learn
"" Am i doing it right? I've unpacked vibe.d-master to my "C:\D\dtwo\src" commands in cmd: cd C:\D\dtwo\windows\bin\ echo "vibe.d-master is a folder" dmd -lib C:\D\dtwo\src\vibe.d-master\core\vibe\appmain.d C:\D\dtwo\src\vibe.d-master\http\vibe\http\server.d no wai, Ill just paste the

Re: How to use listener.d example?

2018-09-04 Thread Marcin via Digitalmars-d-learn
On Friday, 31 August 2018 at 07:38:54 UTC, Marcin wrote: https://github.com/dlang/dmd/blob/master/samples/listener.d Im using Notepad++ as my IDE cuz i dont have administrator privileges on PC To import modules i use -I option cmd /k cd C:\D\dtwo\windows\bin\ &

How to use listener.d example?

2018-08-31 Thread Marcin via Digitalmars-d-learn
https://github.com/dlang/dmd/blob/master/samples/listener.d Can some one add more comment to that example? I need to make code that connects to local application, very similar to this. Assumptions: 1. Create an application that listens to arguments. 2. Create an application that will send