Re: dub command line in config?

2016-10-08 Thread Jinx via Digitalmars-d-learn
On Sunday, 9 October 2016 at 05:09:28 UTC, Mike Parker wrote: On Saturday, 8 October 2016 at 23:05:51 UTC, Jinx wrote: how to add command line options to the dub.json so they do not have to be typed on the command line every time? AFAIK, there's not support for this. Is it really necessary, t

Re: dub command line in config?

2016-10-08 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 8 October 2016 at 23:05:51 UTC, Jinx wrote: how to add command line options to the dub.json so they do not have to be typed on the command line every time? AFAIK, there's not support for this. Is it really necessary, though? It's a one line shell script.

Re: Beginner DUB user question...

2016-10-08 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 9 October 2016 at 01:24:57 UTC, WhatMeWorry wrote: I've got a little hello_window DUB project which uses these dependencies: dependency "derelict-util" version="~>2.0.6" dependency "derelict-glfw3" version="~>3.1.0" dependency "derelict-gl3" version="~>1.0.19" dependency

Re: Beginner DUB user question...

2016-10-08 Thread rikki cattermole via Digitalmars-d-learn
On 09/10/2016 2:24 PM, WhatMeWorry wrote: I've got a little hello_window DUB project which uses these dependencies: dependency "derelict-util" version="~>2.0.6" dependency "derelict-glfw3" version="~>3.1.0" dependency "derelict-gl3" version="~>1.0.19" dependency "derelict-fi"version="~>2

Beginner DUB user question...

2016-10-08 Thread WhatMeWorry via Digitalmars-d-learn
I've got a little hello_window DUB project which uses these dependencies: dependency "derelict-util" version="~>2.0.6" dependency "derelict-glfw3" version="~>3.1.0" dependency "derelict-gl3" version="~>1.0.19" dependency "derelict-fi"version="~>2.0.3" dependency "derelict-ft"

dub command line in config?

2016-10-08 Thread Jinx via Digitalmars-d-learn
how to add command line options to the dub.json so they do not have to be typed on the command line every time?

weighted round robin

2016-10-08 Thread vino via Digitalmars-d-learn
Hi, Can some one guide me on how to implement the weighted round robin, below is what i tried or any other better ways to do it Main Requirement : Incoming socket connection has to be sent to 3 servers in the weighted round robin fashion. Prog:1 import std.stdio; import std.range; import s

Re: Why can't static arrays be sorted?

2016-10-08 Thread Jon Degenhardt via Digitalmars-d-learn
On Thursday, 6 October 2016 at 20:11:17 UTC, ag0aep6g wrote: On 10/06/2016 09:54 PM, TheGag96 wrote: Interestingly enough, I found that using .each() actually compiles without the [] [...] why can the compiler consider it a range here but not .sort()? each is not restricted to ranges. It ac

Re: Easy sockets - don't exist yet?

2016-10-08 Thread Karabuta via Digitalmars-d-learn
On Monday, 26 September 2016 at 23:40:10 UTC, Vincent wrote: Hello, guys! I was very surprised that module 'socketstream' was deprecated. Usually if something become obsolete, there is some perfect replacement! But my digging in Inet and forums gave nothing, but "outdated" examples with 'Sock

Re: How do I load a shared library?

2016-10-08 Thread Nafees via Digitalmars-d-learn
On Saturday, 8 October 2016 at 13:46:50 UTC, Adam D. Ruppe wrote: On Saturday, 8 October 2016 at 07:33:30 UTC, Nafees wrote: It compiles fine, but when I run loader, it crashes as soon as dlopen is called, giving a segFault. What output do you get? If you compile with `-g` to dmd and run it i

Re: Basic sounds' playing

2016-10-08 Thread John C via Digitalmars-d-learn
On Saturday, 8 October 2016 at 13:35:57 UTC, Cleverson Casarin Uliana wrote: Thank you Vadim and John, the PlaySound function is enough for now. I'm not yet developing an app, just experimenting with some exercises. The wasapi library seems interesting, does it also implement a playSound-like

Re: How do I load a shared library?

2016-10-08 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 8 October 2016 at 07:33:30 UTC, Nafees wrote: It compiles fine, but when I run loader, it crashes as soon as dlopen is called, giving a segFault. What output do you get? If you compile with `-g` to dmd and run it in gdb, you can also use the command `where` to gdb and get a file/

Re: Basic sounds' playing

2016-10-08 Thread Cleverson Casarin Uliana via Digitalmars-d-learn
Thank you Vadim and John, the PlaySound function is enough for now. I'm not yet developing an app, just experimenting with some exercises. The wasapi library seems interesting, does it also implement a playSound-like function? Greetings Cleverson

Re: Why can't static arrays be sorted?

2016-10-08 Thread notna via Digitalmars-d-learn
On Thursday, 6 October 2016 at 09:23:19 UTC, pineapple wrote: On Thursday, 6 October 2016 at 09:17:08 UTC, pineapple wrote: On Wednesday, 5 October 2016 at 19:30:01 UTC, Jonathan M Davis wrote: Would just like to point out that this is design weirdness on Phobos' part - the library I've been wr

Re: Basic sounds' playing

2016-10-08 Thread John C via Digitalmars-d-learn
On Saturday, 8 October 2016 at 01:00:20 UTC, Cleverson Casarin Uliana wrote: Hello all, starting to learn d, apreciating it so far. I'd like to play/stop wave sound files assynchronously on Windows. Can I get a module for that by installing a particular compiler, or is there any package for it

How do I load a shared library?

2016-10-08 Thread Nafees via Digitalmars-d-learn
I've seen the page on how to load/make Shared Libraries, but it doesn't work as mentioned here https://dlang.org/dll-linux.html#dso10 I have 2 files: lib.d contains: import core.stdc.stdio; extern (C) int dll() { printf("dll()\n"); return 0; } shared static this() { printf("libdll.