Re: Dub build for x86_64 on windows

2017-01-01 Thread rikki cattermole via Digitalmars-d-learn
On 02/01/2017 5:12 PM, Andrey wrote: Hello! it is possible to build my application for x86_64 platform? In С++ I can settings mingw_w64 for this. When using dub: $ dub build --arch=x86_64 For Windows you will need to have Visual Studio installed for linker + libc.

Dub build for x86_64 on windows

2017-01-01 Thread Andrey via Digitalmars-d-learn
Hello! it is possible to build my application for x86_64 platform? In С++ I can settings mingw_w64 for this.

Re: Android Status

2017-01-01 Thread Joakim via Digitalmars-d-learn
On Sunday, 1 January 2017 at 09:34:24 UTC, Ignacious wrote: Can you try sudo apt-get install libconfig9 I don't know if that will install something different, but it's the command I see others using online. Otherwise, check if the libconfig++9 package you installed included libconfig.so.9,

Re: Unittest hangs on completion

2017-01-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/30/16 9:32 PM, David Zhang wrote: On Saturday, 31 December 2016 at 02:03:07 UTC, rikki cattermole wrote: As it should, current is never reassigned. You only need one var, next. Of course I didn't read the entire thread chain so, I'm probably missing something. import std.experimental.allo

Re: DIP-1000 and return

2017-01-01 Thread Nordlöw via Digitalmars-d-learn
On Sunday, 1 January 2017 at 17:41:46 UTC, Nordlöw wrote: now fails on Git master (after DIP-1000 has been merged) as When compiled with `-transition=safe`, that is.

Re: DIP-1000 and return

2017-01-01 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 1 January 2017 at 17:41:46 UTC, Nordlöw wrote: The code auto asStatic(T, size_t length)(T[length] arr) { return arr; } @safe pure nothrow @nogc unittest { auto x = [1, 2, 3].asStatic; static assert(is(typeof(x) == int[x.length])); static assert(is(typeof([1, 2, 3].as

Re: DIP-1000 and return

2017-01-01 Thread Nordlöw via Digitalmars-d-learn
On Sunday, 1 January 2017 at 18:00:54 UTC, Stefan Koch wrote: Try: auto asStatic(T, size_t length)(scope T[length] arr) { return arr; } Fails as array_ex.d(72,10): Error: parameter arr is 'return' but function does not return any indirections array_ex.d(80,27): Error: template instanc

DIP-1000 and return

2017-01-01 Thread Nordlöw via Digitalmars-d-learn
The code auto asStatic(T, size_t length)(T[length] arr) { return arr; } @safe pure nothrow @nogc unittest { auto x = [1, 2, 3].asStatic; static assert(is(typeof(x) == int[x.length])); static assert(is(typeof([1, 2, 3].asStatic) == int[x.length])); } now fails on Git master (

Re: Standard output does not get flushed in cygwin?

2017-01-01 Thread rikki cattermole via Digitalmars-d-learn
On 02/01/2017 1:48 AM, Anonymouse wrote: Try this in a cygwin terminal: import std.stdio; import core.thread; void main() { foreach (i; 0..10) { writeln(i); Thread.sleep(1.seconds); } } This program will not output i, wait a second and then output i+1, etc. It will

Standard output does not get flushed in cygwin?

2017-01-01 Thread Anonymouse via Digitalmars-d-learn
Try this in a cygwin terminal: import std.stdio; import core.thread; void main() { foreach (i; 0..10) { writeln(i); Thread.sleep(1.seconds); } } This program will not output i, wait a second and then output i+1, etc. It will be silent for ten seconds and then spam t

Re: Reducing visual clutter.

2017-01-01 Thread Nicholas Wilson via Digitalmars-d-learn
On Saturday, 31 December 2016 at 12:31:07 UTC, Nicholas Wilson wrote: On Saturday, 31 December 2016 at 11:39:39 UTC, Nicholas Wilson wrote: [...] Oh and `kernel` could be a template function that would need its args forwarded to it. It's worse than that `kernel` could be a qualified name wh

Re: Android Status

2017-01-01 Thread Ignacious via Digitalmars-d-learn
Can you try sudo apt-get install libconfig9 I don't know if that will install something different, but it's the command I see others using online. Otherwise, check if the libconfig++9 package you installed included libconfig.so.9, which is what ldc is linked against. If not, install the p