[Issue 16432] JSON incorrectly parses to string

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16432 greenify changed: What|Removed |Added CC||greeen...@gmail.com ---

Re: D future ...

2016-12-29 Thread bauss via Digitalmars-d
On Thursday, 29 December 2016 at 22:53:51 UTC, Chris Wright wrote: On Thu, 29 Dec 2016 21:41:45 +, aberba wrote: Styling is similar to CSS but different. Wished someone would just go for a full blown CSS parser. CSS has proven its more capable and loved for client side styling/decoration.

Re: Adding linker paths with spaces using dmd and msvc toolchain

2016-12-29 Thread Jeremy DeHaan via Digitalmars-d-learn
On Friday, 30 December 2016 at 04:56:59 UTC, Jerry wrote: On Friday, 30 December 2016 at 03:51:13 UTC, Jeremy DeHaan wrote: How does one correctly add a linker path that has spaces? The quotes get consumed by the command line. The way DMD spawns the linker by creating a new string with all

[Issue 14584] spurious autotester deadlocks

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14584 safety0ff.bugz changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17037] std.concurrency has random segfaults

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17037 --- Comment #5 from safety0ff.bugz --- New PR: https://github.com/dlang/phobos/pull/5004 --

Another XML DOM Package

2016-12-29 Thread apz28 via Digitalmars-d-announce
This is my first package to learn D. Suggestion for improvement is welcome. https://github.com/apz28/dlang-xml

Adding linker paths with spaces using dmd and msvc toolchain

2016-12-29 Thread Jeremy DeHaan via Digitalmars-d-learn
I have a path to where some .libs are, and this path has some spaces in it. Using dmd and the msvc toolchain, I only seem to be able to correctly link .lib files if I pass them to the compiler with their full paths, or if I give the linker a relative path. When I add -L/LIBPATH:"path" to the

The future of DMD's JSON output

2016-12-29 Thread Chris Wright via Digitalmars-d
DMD's JSON output hasn't changed since at least the switch from C++ to D. Is it deprecated or merely lacking maintainers? Is there a vision for where it will go?

Re: understanding std.algorithm.mutation.fill behaivor.

2016-12-29 Thread LeqxLeqx via Digitalmars-d-learn
On Wednesday, 28 December 2016 at 08:27:29 UTC, abad wrote: On Wednesday, 28 December 2016 at 08:10:41 UTC, Nemanja Boric wrote: On Wednesday, 28 December 2016 at 05:09:34 UTC, LeqxLeqx wrote: Perhaps this is a stupid question, and I apologize if it is, but why doesn't this compile: import

Re: DIP10005: Dependency-Carrying Declarations is now available for community feedback

2016-12-29 Thread Andrei Alexandrescu via Digitalmars-d
On 12/28/16 9:47 PM, Chris Wright wrote: On Wed, 28 Dec 2016 15:48:46 +, deadalnix wrote: On Saturday, 24 December 2016 at 15:44:18 UTC, Andrei Alexandrescu wrote: A compiler enhancement can do this _without_ a language change. The language addition has additional benefits as described

Beta D 2.072.2-b2

2016-12-29 Thread Martin Nowak via Digitalmars-d-announce
Second and last beta for the 2.072.2 point release. This version adds a few more fixes and also comes with dub v1.1.2-beta.1. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.072.2.html https://github.com/dlang/dub/blob/v1.1.2-beta.1/CHANGELOG.md Please report any bugs at

[Issue 16211] [REG 2.058] Cyclic dependencies broken again

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16211 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/842b51bd1bc8dd6892f1d1122ed27d4f3ed20fce Add message about issue 16211 update

[Issue 7016] local import does not create -deps dependency

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7016 --- Comment #25 from Vladimir Panteleev --- (In reply to RazvanN from comment #17) > Cannot reproduce on Ubuntu 16.04, latest version of compiler. I can reproduce this on a brand new Ubuntu 16.04 amd64 installation. Please

Re: Unittest hangs on completion

2016-12-29 Thread David Zhang via Digitalmars-d-learn
On Friday, 30 December 2016 at 01:25:50 UTC, Steven Schveighoffer wrote: Looks like that comes from here: https://github.com/dlang/dub/blob/master/source/dub/dub.d#L577 I have serious doubts that this is the correct way to run tests, as share ctors are supposed to have run BEFORE unit tests

Re: Unittest hangs on completion

2016-12-29 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/29/16 7:49 PM, David Zhang wrote: On Friday, 30 December 2016 at 00:44:50 UTC, Steven Schveighoffer wrote: Where does the "All unit tests have been completed successfully." message come from? That's not standard D, which prints nothing. I should have mentioned that I use dub then,

Re: Unittest hangs on completion

2016-12-29 Thread David Zhang via Digitalmars-d-learn
On Friday, 30 December 2016 at 00:44:50 UTC, Steven Schveighoffer wrote: Where does the "All unit tests have been completed successfully." message come from? That's not standard D, which prints nothing. -Steve I should have mentioned that I use dub then, shouldn't I? Anyway, this is what

Re: running D on AWS lambda

2016-12-29 Thread Meta via Digitalmars-d-announce
On Thursday, 29 December 2016 at 22:45:53 UTC, extrawurst wrote: Thanks again for this article. I am working with that and created my first amazon alexa skill with that in D! blog post will follow ;) Imagine "Alexa, ask dlang to report news on the forums" :P ~Stephan Ha, that sounds really

Re: Unittest hangs on completion

2016-12-29 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/29/16 3:27 PM, David Zhang wrote: Hi, I've noticed recently, that whenever I unittest, it program hangs either at the very end, or right before they start. When using vanilla unit tests, the program appears to hang after the "All unit tests have been completed successfully." message, and

Re: D future ...

2016-12-29 Thread Chris Wright via Digitalmars-d
On Thu, 29 Dec 2016 21:41:45 +, aberba wrote: > Styling is similar to CSS but different. Wished someone would just go > for a full blown CSS parser. CSS has proven its more capable and loved > for client side styling/decoration. CSS is huge. It also brings in some assumptions about the layout

const(Rvalue) resolved to different overloads

2016-12-29 Thread Ali Çehreli via Digitalmars-d
I'm working on understanding how different qualifiers of the same type, the kinds of indirections that its members may have, and the expressions being lvalue versus rvalue affect function overload resolution. For example, the following program has - struct S with a member having const

Re: running D on AWS lambda

2016-12-29 Thread extrawurst via Digitalmars-d-announce
On Sunday, 13 March 2016 at 21:22:11 UTC, Laeeth Isharc wrote: http://awslambda-d.readthedocs.org/ http://code.dlang.org/packages/awslambda_d https://github.com/kaleidicpublic/awslambda_d AWS Lambda is a 'compute service that runs your code in response to events and automatically manages the

Re: D future ...

2016-12-29 Thread bauss via Digitalmars-d
On Thursday, 29 December 2016 at 21:41:45 UTC, aberba wrote: On Thursday, 29 December 2016 at 19:54:43 UTC, bauss wrote: [...] Styling is similar to CSS but different. Wished someone would just go for a full blown CSS parser. CSS has proven its more capable and loved for client side

Re: Unittest hangs on completion

2016-12-29 Thread David Zhang via Digitalmars-d-learn
On Thursday, 29 December 2016 at 20:50:54 UTC, David Zhang wrote: On Thursday, 29 December 2016 at 20:33:33 UTC, Stefan Koch wrote: It would be very helpful if you could provide example code that triggers that behavior. I'd love to, but I'm not actually sure just what it is that breaks it.

[Issue 17037] std.concurrency has random segfaults

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17037 safety0ff.bugz changed: What|Removed |Added Keywords||pull --- Comment

Re: D future ...

2016-12-29 Thread aberba via Digitalmars-d
On Thursday, 29 December 2016 at 19:54:43 UTC, bauss wrote: On Wednesday, 28 December 2016 at 12:33:58 UTC, Satoshi wrote: [...] I know this is kinda late to the game If you want to do GUI development and don't want to use any of the existing things because they're outdated or anything you

Re: delegate passed in annotation struct cannot be invoked.

2016-12-29 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 29 December 2016 at 21:19:18 UTC, Alexandru Ermicioi wrote: On Thursday, 29 December 2016 at 21:07:00 UTC, Stefan Koch wrote: It's a delegate and not function. Therefore it will get a frame-ptr regardless, without checking if it is needed or not, or if there is a frame to point

Re: delegate passed in annotation struct cannot be invoked.

2016-12-29 Thread Alexandru Ermicioi via Digitalmars-d-learn
On Thursday, 29 December 2016 at 21:07:00 UTC, Stefan Koch wrote: It's a delegate and not function. Therefore it will get a frame-ptr regardless, without checking if it is needed or not, or if there is a frame to point to. Since there is no frame to point to you get the error. At least this is

Simple tutorial for starting to make D apps for Android

2016-12-29 Thread WebFreak001 via Digitalmars-d-announce
Hi, I just wrote my first tutorial and its about setting up LDC for Android compilation. It is mostly based off the Build LDC for Android Wiki page but I have written it so it is easier to understand for beginners. I followed the Wiki page and for example had some problems because I used an

Re: delegate passed in annotation struct cannot be invoked.

2016-12-29 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 29 December 2016 at 20:55:43 UTC, Alexandru Ermicioi wrote: Given code below: import std.stdio; struct Annotation { public int delegate(int) dg; } void main() { import std.traits; __traits(getAttributes, Cls)[0].dg(20).writeln; } @Annotation(delegate

delegate passed in annotation struct cannot be invoked.

2016-12-29 Thread Alexandru Ermicioi via Digitalmars-d-learn
Given code below: import std.stdio; struct Annotation { public int delegate(int) dg; } void main() { import std.traits; __traits(getAttributes, Cls)[0].dg(20).writeln; } @Annotation(delegate int(int d) { return d; }) class Cls { void method() { } }

Re: Unittest hangs on completion

2016-12-29 Thread David Zhang via Digitalmars-d-learn
On Thursday, 29 December 2016 at 20:33:33 UTC, Stefan Koch wrote: It would be very helpful if you could provide example code that triggers that behavior. I'd love to, but I'm not actually sure just what it is that breaks it. I can provide the git repo for one of them though though:

Re: Unittest hangs on completion

2016-12-29 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 29 December 2016 at 20:27:21 UTC, David Zhang wrote: Hi, I've noticed recently, that whenever I unittest, it program hangs either at the very end, or right before they start. When using vanilla unit tests, the program appears to hang after the "All unit tests have been

Unittest hangs on completion

2016-12-29 Thread David Zhang via Digitalmars-d-learn
Hi, I've noticed recently, that whenever I unittest, it program hangs either at the very end, or right before they start. When using vanilla unit tests, the program appears to hang after the "All unit tests have been completed successfully." message, and I have to force to program to exit.

[Issue 17037] std.concurrency has random segfaults

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17037 safety0ff.bugz changed: What|Removed |Added Hardware|x86_64 |All

Re: D future ...

2016-12-29 Thread Arun Chandrasekaran via Digitalmars-d
On Thursday, 29 December 2016 at 19:54:43 UTC, bauss wrote: It can be found here: http://poisonengine.github.io/ 404, here is a working link -- https://github.com/PoisonEngine/poison-ui

Re: D future ...

2016-12-29 Thread bauss via Digitalmars-d
On Thursday, 29 December 2016 at 19:54:43 UTC, bauss wrote: It can be found here: http://poisonengine.github.io/ I apologize I meant here: https://poisonengine.github.io/poison-ui/

Re: D future ...

2016-12-29 Thread bauss via Digitalmars-d
On Wednesday, 28 December 2016 at 12:33:58 UTC, Satoshi wrote: On Wednesday, 28 December 2016 at 12:03:53 UTC, YAHB wrote: Just think to your strategy and try to be wise. Even Qt sources are available. There's at least 10 ways to waste a freelance commercial project. Qt is out of dated crap

Re: Explain the Modules to me but better...

2016-12-29 Thread bachmeier via Digitalmars-d-learn
On Thursday, 29 December 2016 at 18:20:22 UTC, Modules Confuse Me wrote: I'm really getting hung up on a simple thing, such as how to structure my program in the 'D' way. So correct me if I am wrong. In my packages, I should be using 'public' imports correct? So that the imports get

Re: Explain the Modules to me but better...

2016-12-29 Thread Nemanja Boric via Digitalmars-d-learn
On Thursday, 29 December 2016 at 19:00:25 UTC, Nemanja Boric wrote: On Thursday, 29 December 2016 at 18:20:22 UTC, Modules Confuse Me wrote: [...] If you have following: [...] This all is valid, of course, only if I guessed right your problem :-)

Re: Explain the Modules to me but better...

2016-12-29 Thread Nemanja Boric via Digitalmars-d-learn
On Thursday, 29 December 2016 at 18:20:22 UTC, Modules Confuse Me wrote: I'm trying to get going with D, but I keep getting hung up on modules. I personally like having many smaller files. Generally classes and interfaces all go into their own file. Even if the overall file ends up being

Re: CTFE Status

2016-12-29 Thread Stefan Koch via Digitalmars-d
Hi Guys, I just figured out why array constants did not work as function arguments. It's because the array-constant undergoes a cast when used as slice, while an array literal can be taken as is. The currently newCTFE does not really provide the capabilities to handle casts. This is another

Explain the Modules to me but better...

2016-12-29 Thread Modules Confuse Me via Digitalmars-d-learn
I'm trying to get going with D, but I keep getting hung up on modules. I personally like having many smaller files. Generally classes and interfaces all go into their own file. Even if the overall file ends up being smaller than 10 lines of real code. After reading:

[Issue 16980] [REG2.072.0] wrong interface called

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16980 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 16980] [REG2.072.0] wrong interface called

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16980 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bbd22804313fa37fe2848b7f3bc45f83f4ea8db8 fix Issue 16980 - wrong interface called - ensure that

Re: It's alive! D building D building D, all on Android

2016-12-29 Thread Walter Bright via Digitalmars-d-announce
On 5/5/2016 1:17 AM, Joakim wrote: After a sleepless night of trying to build the latest ldc master branch 2.070.2 on my Android tablet a couple nights ago, almost the full druntime/phobos standard library test suite passes (only one assert in std.conv) and the same for the dmd test suite, with

Re: Android Status

2016-12-29 Thread Ignacious via Digitalmars-d-learn
On Thursday, 29 December 2016 at 10:14:53 UTC, Joakim wrote: On Wednesday, 28 December 2016 at 23:33:57 UTC, Ignacious wrote: What is the current status for building android apps in D? I would like to create simple graphic based apps but don't wanna get bogged down in trying to get car moving

[Issue 16980] [REG2.072.0] wrong interface called

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16980 Martin Nowak changed: What|Removed |Added Summary|[REG2.072.0] vtable issue |[REG2.072.0] wrong

dlang-requests 0.4.0 released

2016-12-29 Thread ikod via Digitalmars-d-announce
Hi, dlang-requests v0.4.0 released. Major new feature - threaded request pool, which works like InputRange. You can write code like this: iota(10). map!(n => "%d".format(n).representation). map!(d => Job("http://httpbin.org/post;).method("POST").data(d)).

Re: Android Status

2016-12-29 Thread Joakim via Digitalmars-d-learn
On Wednesday, 28 December 2016 at 23:33:57 UTC, Ignacious wrote: What is the current status for building android apps in D? I would like to create simple graphic based apps but don't wanna get bogged down in trying to get car moving without any wheels. Should all work, but nothing other than

Re: Android Status

2016-12-29 Thread Nicholas Wilson via Digitalmars-d-learn
On Wednesday, 28 December 2016 at 23:33:57 UTC, Ignacious wrote: What is the current status for building android apps in D? I would like to create simple graphic based apps but don't wanna get bogged down in trying to get car moving without any wheels.

Re: CTFE difference between dmd and ldc2

2016-12-29 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On Thursday, 29 December 2016 at 09:24:23 UTC, Joseph Rushton Wakeling wrote: On Tuesday, 27 December 2016 at 22:34:50 UTC, Johan Engelen wrote: Do you see the same with dmd 2.071? (that's the same front-end code as the LDC version tested) Sorry for delay in following up on this. Yes, the

Re: CTFE difference between dmd and ldc2

2016-12-29 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On Tuesday, 27 December 2016 at 22:34:50 UTC, Johan Engelen wrote: On Tuesday, 27 December 2016 at 17:56:07 UTC, Stefan Koch wrote: I doubt that this is a CTFE bug since there should be little difference in the ctfe code between ldc and dmd. That said, it is of course a possibility. Do you

Re: It's alive! D building D building D, all on Android

2016-12-29 Thread Joakim via Digitalmars-d-announce
On Sunday, 15 May 2016 at 11:09:01 UTC, Joakim wrote: On Wednesday, 11 May 2016 at 19:07:10 UTC, Joakim wrote: On Thursday, 5 May 2016 at 14:07:07 UTC, Vadim Lopatin wrote: On Thursday, 5 May 2016 at 08:17:07 UTC, Joakim wrote: [...] Great work! I've slapped up some beta builds, have at

[Issue 17040] Examples should have an import of itself

2016-12-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17040 greenify changed: What|Removed |Added CC||greeen...@gmail.com

What are constants?

2016-12-29 Thread Chinmay Sahoo via Digitalmars-d-announce
A number, character string, or character which is used as a program value is called constants. A constant is characterized by the type and the value. integer-constant floating-point-constant character-constant enumeration-constant