Re: Installing DUB on OSX

2016-02-23 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-02-24 07:49, Joel wrote: I get this: Joels-MacBook-Pro:bin joelcnz$ ln -s /usr/local/bin/dub /usr/bin ln: /usr/bin/dub: Operation not permitted Joels-MacBook-Pro:bin joelcnz$ If you have OS X 10.10.x or lower you can prefix the command with "sudo". If you have OS X 10.11 or later

Re: C++ UFCS update

2016-02-23 Thread Walter Bright via Digitalmars-d
On 2/23/2016 11:23 PM, Suliman wrote: Could you add to D operators like AND OR etc instead of && ||. Words are more readable. Those exist in C++ and I've never seen them used outside of a test suite. That's not encouraging.

Re: Beta D 2.070.1-b1

2016-02-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-02-24 01:37, Martin Nowak wrote: First beta for the 2.070.1 point release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.070.1.html Please report any bugs at https://issues.dlang.org Looking good so far here. -- /Jacob Carlborg

Re: C++ UFCS update

2016-02-23 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Tuesday, 23 February 2016 at 20:35:16 UTC, Ola Fosheim Grøstad wrote: The primary issue I have with iostream is that floating point formatting gets ugly. The "<<" works out ok for iostream in practice, mostly because it is not common to do bit-shifts in combination with IO. stdout <<

Re: C++ UFCS update

2016-02-23 Thread Suliman via Digitalmars-d
On Wednesday, 24 February 2016 at 07:19:02 UTC, Walter Bright wrote: On 2/23/2016 12:35 PM, Ola Fosheim Grøstad wrote: And I have to say that I find it ironic that Walter objects to reusing operators such as "<<" while he is reusing "!" for templates, Hardly. ! is not an overloadable

Re: C++ UFCS update

2016-02-23 Thread Walter Bright via Digitalmars-d
On 2/23/2016 12:35 PM, Ola Fosheim Grøstad wrote: And I have to say that I find it ironic that Walter objects to reusing operators such as "<<" while he is reusing "!" for templates, Hardly. ! is not an overloadable operator in D, and ! has no binary operator meaning other than for template

[Issue 15717] New: iota: "Error: cannot implicitly convert expression (cast(int)pastLast - 1) of type int to ushort"

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15717 Issue ID: 15717 Summary: iota: "Error: cannot implicitly convert expression (cast(int)pastLast - 1) of type int to ushort" Product: D Version: D2 Hardware: x86

Re: Installing DUB on OSX

2016-02-23 Thread Joel via Digitalmars-d-learn
On Saturday, 20 February 2016 at 12:01:04 UTC, Jacob Carlborg wrote: On 2016-02-20 04:21, Joel wrote: How do you do symbolic links? ln -s Replace and with the appropriate paths. I get this: Joels-MacBook-Pro:bin joelcnz$ ln -s /usr/local/bin/dub /usr/bin ln: /usr/bin/dub: Operation

[Issue 15713] [REG-master] ctfe string concatenation is templates is broken

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15713 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4852e48d1c0f5d0a2d7f4ccbebb463a86f264416 fix Issue 15713 - ctfe

[Issue 15713] [REG-master] ctfe string concatenation is templates is broken

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

[Issue 7517] Interface contracts broken

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7517 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5b7291428e22fd356df5e9540c093252152c854d fix Issue 7517 - Interface

Re: vk.xml

2016-02-23 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 24 February 2016 at 00:50:40 UTC, Nicholas Wilson wrote: AA's are nice in theory but the non-deterministic nature of their order of iteration is painful... An ordered map as the default AA implementation would be worse. Most use cases for a hash map don't need ordering.

Re: Simple performance question from a newcomer

2016-02-23 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 20:03:30 UTC, dextorious wrote: For instance, I am still not sure how to make it pass the -O5 switch to the LDC2 compiler and the impression I got from the documentation is that explicit manual switches can only be supplied for the DMD compiler. If you're

Re: Syntax highlighting of backticks now supported in Notepad++

2016-02-23 Thread Charles via Digitalmars-d-announce
On Tuesday, 23 February 2016 at 17:01:47 UTC, Andre wrote: Hi, with the newest version of Notepad++ (6.9) strings enclosed with backticks `Hello World!` are now correctly highlighted. Kind regards André And here I've been escaping double quotes for years. Didn't know this was a thing.

[Issue 15681] [REG2.067] Nested user type enum not retaining value properly.

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15681 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1d13794bc84a6af0d13f84a16baf6f881109668e fix Issue 15681 - Nested

[Issue 15664] [REG2.064] incorrect initialisation of member of an immutable struct

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15664 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c396fd9941f873c6ed9fd5ac281621dd911d6f7a fix Issue 15664 - incorrect

[Issue 15674] [REG 2.066] alias this rejected for 'out' parameter

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15674 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/89c63bf1e1a508472fc88ac355fa7ccd39fe7802 fix Issue 15674 - alias

Re: Unum II announcement

2016-02-23 Thread Nick B via Digitalmars-d
On Tuesday, 23 February 2016 at 21:47:10 UTC, H. S. Teoh wrote: On Tue, Feb 23, 2016 at 09:20:23PM +, Nick B via Digitalmars-d wrote: On Tuesday, 23 February 2016 at 18:35:47 UTC, H. S. Teoh wrote: What I had in mind was more of a unum library that early adopters can use to get a feel

Re: vk.xml

2016-02-23 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 21 February 2016 at 15:18:44 UTC, ZombineDev wrote: On Sunday, 21 February 2016 at 12:52:33 UTC, Nicholas Wilson wrote: [...] I'm glad to see more people looking to create a D binding from vk.xml! I was also working on this

Beta D 2.070.1-b1

2016-02-23 Thread Martin Nowak via Digitalmars-d-announce
First beta for the 2.070.1 point release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.070.1.html Please report any bugs at https://issues.dlang.org -Martin

[Issue 15716] How to resolve the warning explicit braces to avoid ambiguous else

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15716 Mathias Lang changed: What|Removed |Added Status|NEW |RESOLVED

Re: Unum II announcement

2016-02-23 Thread Nicholas Wilson via Digitalmars-d
On Tuesday, 23 February 2016 at 20:22:19 UTC, jmh530 wrote: On Monday, 22 February 2016 at 05:08:13 UTC, Nick B wrote: I strongly recommend that you download the presentation [Powerpoint, 35 pages] as there are lots of Notes with the presentation. I had a chance to go through the

[Issue 15713] [REG-master] ctfe string concatenation is templates is broken

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15713 Kenji Hara changed: What|Removed |Added Keywords||CTFE, ice, pull

Re: Starting threads inside class

2016-02-23 Thread Ali Çehreli via Digitalmars-d-learn
On 02/23/2016 07:31 AM, Josh wrote: > My goal with the code below is to eventually have my main communicate > with Foo and Bar classes listening for packets on a different > address/port, each in a separate thread. The main issue is that in D all data is thread-local by-default. main() cannot

Re: Issues

2016-02-23 Thread Andre via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 19:53:52 UTC, Johan Engelen wrote: On Monday, 22 February 2016 at 23:21:28 UTC, Jonathan M Davis wrote: Well, if you'll notice th list of resolved issues is going up way faster than the list of new issues. (To put some oil on the fire:) But the number of

Re: Simple performance question from a newcomer

2016-02-23 Thread jmh530 via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 20:03:30 UTC, dextorious wrote: Personally, I think a few aspects of documentation for the various compilers, dub and possibly the dlang.org website itself could be improved, if accessibility is considered important. Couldn't agree more. Being new to the

Re: [OT] Some neat ideas from the Kotlin language

2016-02-23 Thread Xinok via Digitalmars-d
On Tuesday, 23 February 2016 at 19:43:43 UTC, rsw0x wrote: ... How does this differ from the example I gave where the branch is only taken if the pointer is non-null? D doesn't prevent you from dereferencing a null pointer whereas these scenarios should be impossible in Kotlin as well as

Re: Unum II announcement

2016-02-23 Thread H. S. Teoh via Digitalmars-d
On Tue, Feb 23, 2016 at 09:20:23PM +, Nick B via Digitalmars-d wrote: > On Tuesday, 23 February 2016 at 18:35:47 UTC, H. S. Teoh wrote: > > > > >This is very interesting, and looks more promising than the previous > >unum presentation. > > > >While it's too early to hope for a hardware

Re: C++ UFCS update

2016-02-23 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 23 February 2016 at 20:54:25 UTC, Era Scarecrow wrote: Considering it's just an #include forcing a replacement, it hides a little of what it's doing. Honestly && and || look fine No, they are keywords. http://en.cppreference.com/w/cpp/keyword/and machine: + is add, - is sub, ~

Re: Unum II announcement

2016-02-23 Thread Nick B via Digitalmars-d
On Tuesday, 23 February 2016 at 18:35:47 UTC, H. S. Teoh wrote: This is very interesting, and looks more promising than the previous unum presentation. While it's too early to hope for a hardware implementation, I'm interested in implementing a software emulation in D. D's powerful

Re: C++ UFCS update

2016-02-23 Thread Era Scarecrow via Digitalmars-d
On Tuesday, 23 February 2016 at 20:35:16 UTC, Ola Fosheim Grøstad wrote: But in C/C++ "x->m" is a shorthand for "(*x).f". I remember many compiling errors were I'd have to switch . with -> and vice versa... I don't really want to return to that, especially when you have two versions of

Re: C++ UFCS update

2016-02-23 Thread Timon Gehr via Digitalmars-d
On 23.02.2016 21:35, Ola Fosheim Grøstad wrote: I find it ironic that Walter objects to reusing operators such as "<<" while he is reusing "!" for templates No reusing and no irony here. "!" for template instantiation is a binary usage.

Re: C++ UFCS update

2016-02-23 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 23 February 2016 at 20:11:01 UTC, Era Scarecrow wrote: c->x and c.x were basically the same. Why not use -> instead of | ? Sure, you can do that. Other languages use "->" for pushing parameters. But in C/C++ "x->m" is a shorthand for "(*x).f". C++ also have "and" and "or" as a

Re: Unum II announcement

2016-02-23 Thread jmh530 via Digitalmars-d
On Monday, 22 February 2016 at 05:08:13 UTC, Nick B wrote: I strongly recommend that you download the presentation [Powerpoint, 35 pages] as there are lots of Notes with the presentation. I had a chance to go through the presentation a bit. The part about SORNs is a little confusing. For

Re: Simple performance question from a newcomer

2016-02-23 Thread dextorious via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 14:07:22 UTC, Marc Schütz wrote: On Tuesday, 23 February 2016 at 11:10:40 UTC, ixid wrote: We really need to standard algorithms to be fast and perhaps have separate ones for perfect technical accuracy. While I agree with most of what you're saying, I don't

Re: C++ UFCS update

2016-02-23 Thread Era Scarecrow via Digitalmars-d
On Tuesday, 23 February 2016 at 10:16:43 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 23 February 2016 at 07:46:08 UTC, Era Scarecrow wrote: If | effectively does the same as . (at least that's the impression I get, maybe I'm totally wrong), what benefit does it give other than confusing or

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-23 Thread WhatMeWorry via Digitalmars-d
On Tuesday, 23 February 2016 at 09:39:22 UTC, Adrian Matoga wrote: On Wednesday, 10 February 2016 at 20:25:05 UTC, anonymous wrote: On 10.02.2016 17:49, Ola Fosheim Grøstad wrote: If you guys are going to create a new logo based on the old one, you probably should clear it with the original

Re: Simple performance question from a newcomer

2016-02-23 Thread dextorious via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 11:10:40 UTC, ixid wrote: On Monday, 22 February 2016 at 15:43:23 UTC, dextorious wrote: I do have to wonder, however, about the default settings of dub in this case. Having gone through its documentation, I might still not have guessed to try the compiler

Re: Issues

2016-02-23 Thread Johan Engelen via Digitalmars-d-learn
On Monday, 22 February 2016 at 23:21:28 UTC, Jonathan M Davis wrote: Well, if you'll notice th list of resolved issues is going up way faster than the list of new issues. (To put some oil on the fire:) But the number of new issues /is/ going up. I.e. the number of resolved issues is going

Re: [OT] Some neat ideas from the Kotlin language

2016-02-23 Thread rsw0x via Digitalmars-d
On Tuesday, 23 February 2016 at 14:58:21 UTC, Xinok wrote: On Tuesday, 23 February 2016 at 07:18:09 UTC, rsw0x wrote: On Tuesday, 23 February 2016 at 06:49:46 UTC, Tobias Müller wrote: OTOH in the examples in Kotlin/Rust the variable 'var' changes its type from 'int?' to plain 'int'. In

Re: Unum II announcement

2016-02-23 Thread H. S. Teoh via Digitalmars-d
On Mon, Feb 22, 2016 at 05:08:13AM +, Nick B via Digitalmars-d wrote: > "For those of you who think you have already seen unums, this is a > different approach. Every one of the slides here is completely new and > has not been presented before the Multicore 2016 conference [in Wgtn, > NZ]." >

Re: Unum II announcement

2016-02-23 Thread Charles via Digitalmars-d
On Tuesday, 23 February 2016 at 15:12:38 UTC, John Colvin wrote: On Tuesday, 23 February 2016 at 13:46:33 UTC, Charles wrote: On Tuesday, 23 February 2016 at 08:49:50 UTC, John Colvin wrote: If you don't find people with D, this might be an opportunity. There is

Syntax highlighting of backticks now supported in Notepad++

2016-02-23 Thread Andre via Digitalmars-d-announce
Hi, with the newest version of Notepad++ (6.9) strings enclosed with backticks `Hello World!` are now correctly highlighted. Kind regards André

[Issue 4763] Few possible changes on std.stdio.File

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4763 --- Comment #4 from ag0ae...@gmail.com --- (In reply to Andre from comment #3) > So we narrowed it down to one point, shall I change the title to reflect > this? Yeah, I suppose you can do that. > Regarding the follow up: > Is someone in particular

Re: Issues

2016-02-23 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Feb 23, 2016 at 02:38:42PM +, Andre via Digitalmars-d-learn wrote: [...] > In case of #4763 I closed it because 2 out of 3 enhancement requests > were fixed/solved and the 3rd was open for about 5 years, without > recent activity, no owner, empty CC and no votes. [...] Sometimes

Re: Simple performance question from a newcomer

2016-02-23 Thread ixid via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 14:07:22 UTC, Marc Schütz wrote: On Tuesday, 23 February 2016 at 11:10:40 UTC, ixid wrote: We really need to standard algorithms to be fast and perhaps have separate ones for perfect technical accuracy. While I agree with most of what you're saying, I don't

Starting threads inside class

2016-02-23 Thread Josh via Digitalmars-d-learn
My goal with the code below is to eventually have my main communicate with Foo and Bar classes listening for packets on a different address/port, each in a separate thread. They would then communicate with Foobaz and Barbaz threads respectively to do other work. In trying to get just Foo

Re: Unum II announcement

2016-02-23 Thread John Colvin via Digitalmars-d
On Tuesday, 23 February 2016 at 13:46:33 UTC, Charles wrote: On Tuesday, 23 February 2016 at 08:49:50 UTC, John Colvin wrote: I saw you looking for heavy math users. I work with quite a few actuaries, but I probably wouldn't be able to convince them to use anything if there wasn't a way to use

Re: Disappointing inflexibility of argument passing with "alias this"

2016-02-23 Thread NX via Digitalmars-d
On Tuesday, 23 February 2016 at 15:07:08 UTC, NX wrote: It's arguably the right design. When I say arguably I don't mean arguably :D "It's not the right design in my opinion"

Re: Unum II announcement

2016-02-23 Thread jmh530 via Digitalmars-d
On Tuesday, 23 February 2016 at 13:46:33 UTC, Charles wrote: This seems to be the opposite of what I'd need unfortunately. The likelihood of convincing them to use D is probably zero. In general, they're closer to mathematicians then programmers. So was John von Neumann, :) I probably

[Issue 15674] [REG 2.066] alias this rejected for 'out' parameter

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

Re: Disappointing inflexibility of argument passing with "alias this"

2016-02-23 Thread NX via Digitalmars-d
On Tuesday, 23 February 2016 at 14:35:35 UTC, Adam D. Ruppe wrote: There's no ambiguity there and no bug; it is working as defined. alias this is only ever invoked if the outer type doesn't fit. It does fit here, A is A, so no need to check alias this at all. It's arguably the right design.

Re: [OT] Some neat ideas from the Kotlin language

2016-02-23 Thread Xinok via Digitalmars-d
On Tuesday, 23 February 2016 at 07:18:09 UTC, rsw0x wrote: On Tuesday, 23 February 2016 at 06:49:46 UTC, Tobias Müller wrote: OTOH in the examples in Kotlin/Rust the variable 'var' changes its type from 'int?' to plain 'int'. In Kotlin this is done with static analysis, in Rust with rebinding

Re: Yet another leak in the sinking ship of @safe

2016-02-23 Thread Nick Treleaven via Digitalmars-d
On Tuesday, 23 February 2016 at 11:04:31 UTC, Nick Treleaven wrote: Assuming we don't want to disallow slice.ptr in @safe code, maybe we could have the compiler insert this code before reading slice.ptr: version(D_NoBoundsChecks) else if (slice.length == 0) throw new RangeError("Unsafe

Re: Issues

2016-02-23 Thread Andre via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 00:13:23 UTC, ag0aep6g wrote: On 22.02.2016 23:56, Andre wrote: I was wondering how people in this D community think about the number of issues with NEW status... It could scare individuals/organizations to start with D, when they get the impression that there

Re: Simple performance question from a newcomer

2016-02-23 Thread bachmeier via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 11:10:40 UTC, ixid wrote: On Monday, 22 February 2016 at 15:43:23 UTC, dextorious wrote: I do have to wonder, however, about the default settings of dub in this case. Having gone through its documentation, I might still not have guessed to try the compiler

Re: Disappointing inflexibility of argument passing with "alias this"

2016-02-23 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 23 February 2016 at 14:29:27 UTC, NX wrote: The deal is you can't have implicit construction like: A a = 5; // Error That is *explicit* construction and it is perfectly legal in D. It is just done with constructors, not alias this. Alias this has absolutely nothing to do with

Re: Disappointing inflexibility of argument passing with "alias this"

2016-02-23 Thread NX via Digitalmars-d
On Tuesday, 23 February 2016 at 12:43:42 UTC, Kagamin wrote: Don't we already have implicit conversions with alias this, so what's the deal? The deal is you can't have implicit construction like: A a = 5; // Error a = 5 // okay struct A { int i; alias i this; } void f(int i){} void f(string

Re: arsd.dom getElementsByTagNameChildrenOnly?

2016-02-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 11:10:17 UTC, Nicholas Wilson wrote: How do I iterate over the child level elements only (ignoring the ones like VkStructureType)? Element.childNodes gives only direct children. You could also do document.querySelectorAll("types > type") to get only the tags

[Issue 15664] [REG2.064] incorrect initialisation of member of an immutable struct

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15664 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c396fd9941f873c6ed9fd5ac281621dd911d6f7a fix Issue 15664 - incorrect

Re: call to super trashes pointer?

2016-02-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/23/16 6:05 AM, Nicholas Wilson wrote: On Tuesday, 23 February 2016 at 10:47:17 UTC, Rene Zwanenburg wrote: On Tuesday, 23 February 2016 at 09:16:08 UTC, Nicholas Wilson wrote: struct A { int blah; } class B { A* a; this(A* _a) { writeln(_a) a =_a; } }

Re: Simple performance question from a newcomer

2016-02-23 Thread Marc Schütz via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 11:10:40 UTC, ixid wrote: We really need to standard algorithms to be fast and perhaps have separate ones for perfect technical accuracy. While I agree with most of what you're saying, I don't think we should prioritize performance over accuracy or

Re: constant expression

2016-02-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/23/16 3:00 AM, Nicholas Wilson wrote: On Tuesday, 23 February 2016 at 07:43:37 UTC, Ali Çehreli wrote: On 02/22/2016 11:38 PM, Nicholas Wilson wrote: I've tried with both mutable and immutable a module scope. Scope I want is global (don't care about mutability) Uncomment immutable if

Re: Unum II announcement

2016-02-23 Thread Charles via Digitalmars-d
On Tuesday, 23 February 2016 at 08:49:50 UTC, John Colvin wrote: I saw you looking for heavy math users. I work with quite a few actuaries, but I probably wouldn't be able to convince them to use anything if there wasn't a way to use it with either SAS or R. SAS can import C functions, but

Re: dub dustmite: Initial test fails

2016-02-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 11:09:00 UTC, denizzzka wrote: Hi! I have a code with segfault. I decided to try to take advantage with dub dustmite: $ dub dustmite ~/ssd/pgator_dustmite0 --program-status=139 -- --config=my_pgator.conf --debug=true Shells process signal exit codes in a

Re: std.xml2 (collecting features)

2016-02-23 Thread Dmitry via Digitalmars-d
On Tuesday, 23 February 2016 at 11:22:23 UTC, Joakim wrote: Then write a good XML extraction-only library and dub it. I see no reason to include this in Phobos You won't be able to sleep if it will be in Phobos? I use XML and I don't like check tons of side libraries for see which will be

Re: Disappointing inflexibility of argument passing with "alias this"

2016-02-23 Thread Kagamin via Digitalmars-d
On Tuesday, 23 February 2016 at 01:02:21 UTC, Jonathan M Davis wrote: Yeah. Sometimes having implicit conversions is great. Other times, it creates tons of problems. C++ allows a lot of implicit stuff, and it becomes really easy to have unexpected conversions going on, and it can be difficult

Re: SIGSEGV when using D DLL with Qt MinGW

2016-02-23 Thread Jerry via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 11:10:30 UTC, Mike Parker wrote: I'm surprised you're able to get an executable when linking with the import library. I actually just tried a bunch of extern(?), extern "?" combinations and it compiled. If you want 32-bit COFF output from DMD, you'll need

[Issue 4763] Few possible changes on std.stdio.File

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4763 --- Comment #3 from Andre --- I came to the same conclusion.. So we narrowed it down to one point, shall I change the title to reflect this? Regarding the follow up: Is someone in particular responsible for this library or the

Re: std.xml2 (collecting features)

2016-02-23 Thread Joakim via Digitalmars-d
On Friday, 19 February 2016 at 12:13:53 UTC, Chris wrote: On Sunday, 3 May 2015 at 17:47:15 UTC, Joakim wrote: On Sunday, 3 May 2015 at 17:39:48 UTC, Robert burner Schadek wrote: std.xml has been considered not up to specs nearly 3 years now. Time to build a successor. I currently plan the

Re: LDC 0.17.0 has been released!

2016-02-23 Thread Kai Nacke via Digitalmars-d-announce
On Tuesday, 23 February 2016 at 05:54:06 UTC, Kai Nacke wrote: On Sunday, 14 February 2016 at 17:30:33 UTC, Kai Nacke wrote: Hi everyone, LDC 0.17.0, the LLVM-based D compiler, is available for download! This release is based on the 2.068.2 frontend and standard library and supports LLVM

Re: @mutable

2016-02-23 Thread Timon Gehr via Digitalmars-d
On 22.02.2016 19:03, Nick Treleaven wrote: On Monday, 22 February 2016 at 17:28:03 UTC, Guillaume Chatelet wrote: static make() { The return type is missing for the make() function: I'm pretty sure static here works just like 'static auto'. In D I think you can use storage classes (and even

Re: SIGSEGV when using D DLL with Qt MinGW

2016-02-23 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 08:50:45 UTC, Jerry wrote: I am using the following environment: Windows 7 Qt 5.5 MinGW 4.9 DMD 2.69.1 DUB (with dynamicLibrary option) Everything is x86. I am really stuck here. Thanks on beforehand. I'm surprised you're able to get an executable when

Re: Simple performance question from a newcomer

2016-02-23 Thread ixid via Digitalmars-d-learn
On Monday, 22 February 2016 at 15:43:23 UTC, dextorious wrote: I do have to wonder, however, about the default settings of dub in this case. Having gone through its documentation, I might still not have guessed to try the compiler options you provided, thereby losing out on a 2-3x performance

arsd.dom getElementsByTagNameChildrenOnly?

2016-02-23 Thread Nicholas Wilson via Digitalmars-d-learn
So the vulkan spec has a lot of stuff like VkStructureType sType const void* pNext optional="true">VkBufferCreateFlags flags VkDeviceSize

dub dustmite: Initial test fails

2016-02-23 Thread denizzzka via Digitalmars-d-learn
Hi! I have a code with segfault. I decided to try to take advantage with dub dustmite: $ dub dustmite ~/ssd/pgator_dustmite0 --program-status=139 -- --config=my_pgator.conf --debug=true WARNING: A deprecated branch based version specification is used for the dependency vibe-d-postgresql.

Re: call to super trashes pointer?

2016-02-23 Thread Nicholas Wilson via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 10:47:17 UTC, Rene Zwanenburg wrote: On Tuesday, 23 February 2016 at 09:16:08 UTC, Nicholas Wilson wrote: struct A { int blah; } class B { A* a; this(A* _a) { writeln(_a) a =_a; } } class C : B { this(A* _a) {

Re: Yet another leak in the sinking ship of @safe

2016-02-23 Thread Nick Treleaven via Digitalmars-d
On Friday, 19 February 2016 at 19:00:35 UTC, H. S. Teoh wrote: Here's an existing one that plugs another hole in the cheese grater: https://github.com/D-Programming-Language/phobos/pull/4009 That pull mentions the issue of *arr[$..$].ptr being unsafe:

[Issue 15681] [REG2.067] Nested user type enum not retaining value properly.

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15681 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1d13794bc84a6af0d13f84a16baf6f881109668e fix Issue 15681 - Nested

Re: std.xml2 (collecting features)

2016-02-23 Thread Robert burner Schadek via Digitalmars-d
On Thursday, 18 February 2016 at 15:39:01 UTC, Robert burner Schadek wrote: On Thursday, 18 February 2016 at 12:30:29 UTC, Andrei Alexandrescu wrote: Would the measuring be possible with 2995 as a dub package? -- Andrei yes, after have synced the dub package to the PR brought the dub

Re: call to super trashes pointer?

2016-02-23 Thread Rene Zwanenburg via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 09:16:08 UTC, Nicholas Wilson wrote: struct A { int blah; } class B { A* a; this(A* _a) { writeln(_a) a =_a; } } class C : B { this(A* _a) { writeln(_a) super(_a); } } int main(string[] args) { A

Re: C++ UFCS update

2016-02-23 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 23 February 2016 at 07:46:08 UTC, Era Scarecrow wrote: If | effectively does the same as . (at least that's the impression I get, maybe I'm totally wrong), what benefit does it give other than confusing or obfuscating code? It doesn't confuse or obfuscate code, on the contrary,

[Issue 15490] [REG 2.067] Error variable __nrvoretval cannot be modified at compile time when using -inline

2016-02-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15490 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b56fa1d1b02c93151f0a25d868f4459cac8d6a4d fix Issue 15490 - Error

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-23 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 10 February 2016 at 20:25:05 UTC, anonymous wrote: On 10.02.2016 17:49, Ola Fosheim Grøstad wrote: If you guys are going to create a new logo based on the old one, you probably should clear it with the original creator. On his website he has give us use rights for non-commercial

Re: call to super trashes pointer?

2016-02-23 Thread Nicholas Wilson via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 09:16:08 UTC, Nicholas Wilson wrote: struct A { int blah; } class B { A* a; this(A* _a) { writeln(_a) a =_a; } } class C : B { this(A* _a) { writeln(_a) super(_a); } } int main(string[] args) { A

call to super trashes pointer?

2016-02-23 Thread Nicholas Wilson via Digitalmars-d-learn
struct A { int blah; } class B { A* a; this(A* _a) { writeln(_a) a =_a; } } class C : B { this(A* _a) { writeln(_a) super(_a); } } int main(string[] args) { A a; writeln(); C c = new C(); } prints 7FFF56E787F8

Re: @mutable

2016-02-23 Thread Guillaume Chatelet via Digitalmars-d
On Monday, 22 February 2016 at 18:03:03 UTC, Nick Treleaven wrote: On Monday, 22 February 2016 at 17:28:03 UTC, Guillaume Chatelet wrote: static make() { The return type is missing for the make() function: I'm pretty sure static here works just like 'static auto'. In D I think you can use

SIGSEGV when using D DLL with Qt MinGW

2016-02-23 Thread Jerry via Digitalmars-d-learn
Hello guys, as the title says I'm getting a SIGSEGV when trying to use a D DLL. Let's take a look on this C++ code: extern "C" __declspec(dllimport) void D_user_fillEngine(const char* workDir, void* engine); extern "C" __declspec(dllimport) int D_user_startUp(); extern "C"

Re: Unum II announcement

2016-02-23 Thread John Colvin via Digitalmars-d
On Tuesday, 23 February 2016 at 01:08:38 UTC, Charles wrote: On Monday, 22 February 2016 at 21:27:31 UTC, Nick B wrote: On Monday, 22 February 2016 at 17:15:54 UTC, Charles wrote: [...] Slide 12, 0101 is repeated. The top [...] I will check with John re this error. [...] Its likely

Re: constant expression

2016-02-23 Thread Nicholas Wilson via Digitalmars-d-learn
On Tuesday, 23 February 2016 at 07:43:37 UTC, Ali Çehreli wrote: On 02/22/2016 11:38 PM, Nicholas Wilson wrote: I've tried with both mutable and immutable a module scope. Scope I want is global (don't care about mutability) Uncomment immutable if you want immutable and remove 'shared' if