[Issue 15420] topN(Range, Range) does not respect its less predicate

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15420 --- Comment #1 from Infiltrator --- https://github.com/D-Programming-Language/phobos/pull/3863 --

[Issue 15420] New: topN(Range, Range) does not respect its less predicate

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15420 Issue ID: 15420 Summary: topN(Range, Range) does not respect its less predicate Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

Re: Strange exception, with EXTREMELY SIMPLE toString() in a struct

2015-12-07 Thread rumbu via Digitalmars-d-learn
On Monday, 7 December 2015 at 08:17:27 UTC, Enjoys Math wrote: Exception Message: First-chance exception: std.format.FormatException Unterminated format specifier: "%" at C:\D\dmd2\windows\bin\..\..\src\phobos\std\format.d(828) [CODE] module set; import std.conv; struct Set(T) {

Re: Microsoft to contribute to Clang and LLVM project

2015-12-07 Thread Karabuta via Digitalmars-d
On Monday, 7 December 2015 at 11:26:27 UTC, Bruno Medeiros wrote: News article, Microsoft releases Clang with Microsoft CodeGen: http://blogs.msdn.com/b/vcblog/archive/2015/12/04/introducing-clang-with-microsoft-codegen-in-vs-2015-update-1.aspx The interesting bit is at the end: " Clang with

Re: Do a class invariants affect -release builds?

2015-12-07 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/6/15 6:01 PM, Andrew LaChance wrote: On Saturday, 5 December 2015 at 23:27:31 UTC, Steven Schveighoffer wrote: On 12/5/15 6:06 PM, Andrew LaChance wrote: I was reading a blog post here: http://3d.benjamin-thaut.de/?p=20 which mentions: "Calls to the druntime invariant handler are

Re: Comparison operator overloading

2015-12-07 Thread Mike Parker via Digitalmars-d-learn
On Monday, 7 December 2015 at 11:49:51 UTC, Dominikus Dittes Scherkl wrote: On Sunday, 6 December 2015 at 15:01:08 UTC, cym13 wrote: Don't use opCmp, all binary operators should be overriden using opBinary. For more information I recommend this page

Re: Nullable condition operator

2015-12-07 Thread rumbu via Digitalmars-d
On Monday, 7 December 2015 at 11:40:45 UTC, Martin6265 wrote: Hello, I think nullable condition operator and null coalescending operator should be a nice new features in D. Happy reading: http://forum.dlang.org/post/lnsc0c$1sip$1...@digitalmars.com

Re: Complexity nomenclature

2015-12-07 Thread Timon Gehr via Digitalmars-d
On 12/07/2015 02:46 PM, Andrei Alexandrescu wrote: On 12/7/15 5:14 AM, Timon Gehr wrote: D does not allow overloading of syntax to the extent necessary to make similar things really pleasant in the long run, and it has been repeatedly argued that this is a good thing; that custom parsing should

[Issue 5691] walkLength() compatible with opApply()

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5691 --- Comment #17 from bb.t...@gmx.com --- (In reply to ag0aep6g from comment #16) > (In reply to Andrei Alexandrescu from comment #15) > > Sorry. (I think it was me who closed it - how can I see who did?) > > It wasn't you. bb.temp closed it without

Question about mysql-d Object

2015-12-07 Thread Martin Tschierschke via Digitalmars-d-learn
When I do the following: auto mysql = new Mysql("localhost", 3306, "mt", "", "verwaltung"); auto rows = mysql.query("select field from my_table limit 50"); foreach(row;rows){ writeln(row["field"]);} // second time same loop foreach(row;rows){ writeln(row["field"]);} I only get the output

Re: https everywhere update - dlang.org gets an "A" now!

2015-12-07 Thread Kapps via Digitalmars-d-announce
On Monday, 7 December 2015 at 14:38:39 UTC, Steven Schveighoffer wrote: On 12/6/15 11:32 AM, Marc Schütz wrote: On Sunday, 6 December 2015 at 14:17:18 UTC, Steven Schveighoffer wrote: On 12/6/15 3:29 AM, Adil Baig via Digitalmars-d-announce wrote: +1 Same error. This part may help : This

Re: Nullable condition operator

2015-12-07 Thread Meta via Digitalmars-d
On Monday, 7 December 2015 at 11:40:45 UTC, Martin6265 wrote: Hello, I think nullable condition operator and null coalescending operator should be a nice new features in D. https://msdn.microsoft.com/library/dn986595.aspx https://msdn.microsoft.com/library/ms173224.aspx Same as operator `as`

Re: Complexity nomenclature

2015-12-07 Thread Andrei Alexandrescu via Digitalmars-d
On 12/7/15 5:14 AM, Timon Gehr wrote: D does not allow overloading of syntax to the extent necessary to make similar things really pleasant in the long run, and it has been repeatedly argued that this is a good thing; that custom parsing should be used instead. It is easy to align the parser

Re: OT: Swift is now open source

2015-12-07 Thread tcak via Digitalmars-d
On Friday, 4 December 2015 at 02:59:21 UTC, tcak wrote: On Thursday, 3 December 2015 at 20:37:04 UTC, Steven Schveighoffer wrote: On 12/3/15 3:16 PM, Meta wrote: [...] You may misunderstand -- I prefer semicolons. But having to write swift code for a few weeks, I find now when I write D

[Issue 5691] walkLength() compatible with opApply()

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5691 --- Comment #18 from Steven Schveighoffer --- FWIW, I agree with Andrei here (now). For one thing, walkLength would have to add the complexity of trying to infer the right parameters to pass to foreach. opApply has some

Re: https everywhere update - dlang.org gets an "A" now!

2015-12-07 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/6/15 11:32 AM, Marc Schütz wrote: On Sunday, 6 December 2015 at 14:17:18 UTC, Steven Schveighoffer wrote: On 12/6/15 3:29 AM, Adil Baig via Digitalmars-d-announce wrote: +1 Same error. This part may help : This server could not prove that it is *www.dlang.org *;

Re: Question about mysql-d Object

2015-12-07 Thread Daniel Kozak via Digitalmars-d-learn
On Monday, 7 December 2015 at 14:40:12 UTC, Martin Tschierschke wrote: When I do the following: auto mysql = new Mysql("localhost", 3306, "mt", "", "verwaltung"); auto rows = mysql.query("select field from my_table limit 50"); foreach(row;rows){ writeln(row["field"]);} // second time same

Re: Comparison operator overloading

2015-12-07 Thread Dominikus Dittes Scherkl via Digitalmars-d-learn
On Monday, 7 December 2015 at 13:31:52 UTC, Mike Parker wrote: On Monday, 7 December 2015 at 11:49:51 UTC, Dominikus Dittes Scherkl wrote: On the other hand the chapter also states that opCmp() should always return "int" - which is a bad idea if you e.g. want to provide a "NaN" value in your

Re: Pixelbuffer to draw on a surface

2015-12-07 Thread TheDGuy via Digitalmars-d-learn
On Sunday, 6 December 2015 at 13:32:19 UTC, visitor wrote: gtkd demos for examples, might be of interest, like clock : https://github.com/gtkd-developers/GtkD/blob/master/demos/cairo/cairo_clock/clock.d Thanks! I didn't knew about that source, that helped me alot :)

DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Andrei Alexandrescu via Digitalmars-d-announce
We're over 20% full and seats are going fast! We planned to send an announcement when we're 50% sold out. However, this time around registrations are coming quite a bit quicker than before so we thought we'd keep you posted earlier. At this time DConf is over 20% sold out. That's only three

Re: Question about mysql-d Object

2015-12-07 Thread Márcio Martins via Digitalmars-d-learn
On Monday, 7 December 2015 at 14:40:12 UTC, Martin Tschierschke wrote: When I do the following: auto mysql = new Mysql("localhost", 3306, "mt", "", "verwaltung"); auto rows = mysql.query("select field from my_table limit 50"); foreach(row;rows){ writeln(row["field"]);} // second time same

Re: https everywhere update - dlang.org gets an "A" now!

2015-12-07 Thread Chris Wright via Digitalmars-d-announce
On Mon, 07 Dec 2015 14:48:52 +, Kapps wrote: > On Monday, 7 December 2015 at 14:38:39 UTC, Steven Schveighoffer wrote: >> I'm surprised it wouldn't. I wouldn't think a redirect would need to be >> encrypted. >> >> -Steve > > It does. Otherwise you could bypass HTTPS entirely by replacing the

Re: Release D 2.069.0

2015-12-07 Thread Márcio Martins via Digitalmars-d-announce
On Monday, 7 December 2015 at 17:06:48 UTC, Jean-Yves Vion-Dury wrote: On Wednesday, 4 November 2015 at 15:25:04 UTC, Márcio Martins wrote: [...] FYI, I just installed the 2.069 version, and now I'm unable to compile some modules, getting the same "Error: out of memory". I isolated a tiny

Re: Complexity nomenclature

2015-12-07 Thread Andrei Alexandrescu via Digitalmars-d
On 12/07/2015 09:43 AM, Timon Gehr wrote: 1-2) BigO("1") 3) BigO("count") 4) BigO("distance(first,last)") 5) BigO("ilist.size()") There's also this: On 12/06/2015 12:55 AM, Andrei Alexandrescu wrote: Well you'd need multiple terms if you want to say things like, "inserting a range into an

Re: Release D 2.069.0

2015-12-07 Thread Jean-Yves Vion-Dury via Digitalmars-d-announce
On Wednesday, 4 November 2015 at 15:25:04 UTC, Márcio Martins wrote: On Wednesday, 4 November 2015 at 01:50:38 UTC, Martin Nowak wrote: Glad to announce D 2.069.0. http://dlang.org/download.html http://downloads.dlang.org/releases/2.x/2.069.0/ This is the first release with a self-hosted

[Issue 15416] New: UFCS does not attempt to derefence (but should it?)

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15416 Issue ID: 15416 Summary: UFCS does not attempt to derefence (but should it?) Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor

Strange exception, with EXTREMELY SIMPLE toString() in a struct

2015-12-07 Thread Enjoys Math via Digitalmars-d-learn
Exception Message: First-chance exception: std.format.FormatException Unterminated format specifier: "%" at C:\D\dmd2\windows\bin\..\..\src\phobos\std\format.d(828) [CODE] module set; import std.conv; struct Set(T) { string toString() const { auto str = "{";

Re: Strange exception, with EXTREMELY SIMPLE toString() in a struct

2015-12-07 Thread Marc Schütz via Digitalmars-d-learn
On Monday, 7 December 2015 at 08:17:27 UTC, Enjoys Math wrote: Exception Message: First-chance exception: std.format.FormatException Unterminated format specifier: "%" at C:\D\dmd2\windows\bin\..\..\src\phobos\std\format.d(828) [CODE] module set; import std.conv; struct Set(T) {

[Issue 15416] UFCS does not attempt to derefence (but should it?)

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15416 Infiltrator changed: What|Removed |Added CC||and...@erdani.com,

Re: Complexity nomenclature

2015-12-07 Thread Timon Gehr via Digitalmars-d
On 12/07/2015 02:07 AM, Andrei Alexandrescu wrote: On 12/06/2015 07:50 PM, Timon Gehr wrote: On 12/06/2015 08:48 PM, Andrei Alexandrescu wrote: >The next step up the expressiveness scale would be to have a >sum-of-products representation. > >Proof of concept (disclaimer: hacked together in the

[Issue 314] [module] Static, renamed, and selective imports are always public

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=314 Paolo Invernizzi changed: What|Removed |Added CC|

[Issue 5691] walkLength() compatible with opApply()

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5691 ag0ae...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

Re: DMD unittest fail reporting…

2015-12-07 Thread Atila Neves via Digitalmars-d
On Sunday, 6 December 2015 at 03:23:53 UTC, Chris Wright wrote: I quickly hacked up something to make assertions slightly more verbose: http://dpaste.dzfl.pl/f94b6ed80b3a This can be extended quite a bit without a ton of effort, but it would eventually devolve into fully parsing D using

Re: DMD unittest fail reporting…

2015-12-07 Thread Atila Neves via Digitalmars-d
On Friday, 4 December 2015 at 19:38:35 UTC, ZombineDev wrote: On Friday, 4 December 2015 at 19:00:37 UTC, Russel Winder wrote: [...] You can look at some of the DUB packages: http://code.dlang.org/search?q=test for more advanced testing facilities. I for example sometimes use dunit

Re: learningd.org

2015-12-07 Thread Mike Parker via Digitalmars-d-announce
On Monday, 7 December 2015 at 00:50:08 UTC, Ali Çehreli wrote: On 12/06/2015 11:34 AM, Mike Parker wrote: > I intend to gradually add tutorial content to it as time goes by That is exactly what Andrew Edwards used to want to do. I haven't seen him on the forums lately though. Yeah, he and I

Re: Data-drive (aka table-driven) tests

2015-12-07 Thread Atila Neves via Digitalmars-d
On Friday, 4 December 2015 at 18:49:39 UTC, Russel Winder wrote: [...] That's literally the next feature I want to add to unit-threaded. Looping isn't good enough, I want to know which variant made it fail. Atila

[Issue 15407] Assert hit in toElem e2ir.c:1962

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15407 Kenji Hara changed: What|Removed |Added Keywords||pull

Re: benchmark on binary trees

2015-12-07 Thread Alex via Digitalmars-d-learn
On Sunday, 6 December 2015 at 12:23:52 UTC, visitor wrote: Hello, interesting exercise for me to learn about allocators :-) Nice to know, a novice can inspire someone :) i managed to parallelize the code reaching similar performance, in terms of speed, as the non parallel version :

Re: Complexity nomenclature

2015-12-07 Thread Timon Gehr via Digitalmars-d
On 12/07/2015 02:05 AM, Andrei Alexandrescu wrote: On 12/06/2015 06:21 PM, Timon Gehr wrote: The implementation of power on BigO given does not actually work in general (there should have been an enforcement that makes sure there is only one summand). I'll think about whether and how it can be

Re: Strange behaviour of to!string and JSON

2015-12-07 Thread Sönke Ludwig via Digitalmars-d
Am 03.12.2015 um 12:18 schrieb Vladimir Panteleev: On Thursday, 3 December 2015 at 10:17:17 UTC, Sönke Ludwig wrote: But isn't there a way to customize std.conv.to!T for T other than string? I believe you do that by implementing opCast? Right, forgot about that. Unfortunately that would

Re: Strange exception, with EXTREMELY SIMPLE toString() in a struct

2015-12-07 Thread Radu via Digitalmars-d-learn
On Monday, 7 December 2015 at 08:17:27 UTC, Enjoys Math wrote: Exception Message: First-chance exception: std.format.FormatException Unterminated format specifier: "%" at C:\D\dmd2\windows\bin\..\..\src\phobos\std\format.d(828) [CODE] module set; import std.conv; struct Set(T) {

[Issue 10087] std.range.chunks problem with chunkSize = 0

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10087 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #3 from

Re: benchmark on binary trees

2015-12-07 Thread Alex via Digitalmars-d-learn
On Sunday, 6 December 2015 at 08:45:10 UTC, Rikki Cattermole wrote: Why is TreeNode not final? This is an interesting hint! Just after adding final the program takes two seconds less... This is roughly 5%. Do you have another hints of this kind? ;) Also yours does not use threads in any

Microsoft to contribute to Clang and LLVM project

2015-12-07 Thread Bruno Medeiros via Digitalmars-d
News article, Microsoft releases Clang with Microsoft CodeGen: http://blogs.msdn.com/b/vcblog/archive/2015/12/04/introducing-clang-with-microsoft-codegen-in-vs-2015-update-1.aspx The interesting bit is at the end: " Clang with Microsoft CodeGen isn't just a private fork of the open-source

Re: I hate new DUB config format

2015-12-07 Thread Bruno Medeiros via Digitalmars-d
On 27/11/2015 12:33, Sönke Ludwig wrote: * dub describe does not provide information for all build configurations, only the default one. As such the IDE has to parse the json to find out all available configurations itself. (This is used in the DDT IDE to show a list of "Build Targets" in the

Re: Comparison operator overloading

2015-12-07 Thread Dominikus Dittes Scherkl via Digitalmars-d-learn
On Sunday, 6 December 2015 at 15:01:08 UTC, cym13 wrote: Don't use opCmp, all binary operators should be overriden using opBinary. For more information I recommend this page http://ddili.org/ders/d.en/operator_overloading.html Why should we don't use opCmp() ? I can't see any recommendation

Re: Comparison operator overloading

2015-12-07 Thread Márcio Martins via Digitalmars-d-learn
On Monday, 7 December 2015 at 00:43:50 UTC, Ali Çehreli wrote: On 12/06/2015 06:41 AM, Márcio Martins wrote: > auto m = (a > b) * a + 15; > auto c = a.choose(a > b)^^2; What do those operations do? Are you thinking of a special meaning for '>', perhaps common in numerical computations, which

Nullable condition operator

2015-12-07 Thread Martin6265 via Digitalmars-d
Hello, I think nullable condition operator and null coalescending operator should be a nice new features in D. https://msdn.microsoft.com/library/dn986595.aspx https://msdn.microsoft.com/library/ms173224.aspx Same as operator `as` https://msdn.microsoft.com/library/cscsdfbt.aspx Why? Is

DConf 2016 announcements

2015-12-07 Thread Andrei Alexandrescu via Digitalmars-d
In the announce forum and social media: http://forum.dlang.org/post/n44g82$2sj7$1...@digitalmars.com https://twitter.com/D_Programming/status/673922607628967937 https://www.facebook.com/dlang.org/posts/1180650541948625

AA struct hashing bug?

2015-12-07 Thread Random D user via Digitalmars-d-learn
struct Foo { this( int k ) { a = k; } int a; } Foo foo; int[ Foo ] map; map[ foo ] = 1; // Crash! bug? // This also crashes. I believe crash above makes a call like this (or similar) in the rt. //auto h = typeid( foo ).getHash( ); // Crash! win64 & dmd 2.69.2

Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 12/7/15 1:58 PM, Daniel Kozak wrote: On Monday, 7 December 2015 at 17:39:14 UTC, Andrei Alexandrescu wrote: We're over 20% full and seats are going fast! I hope I was the first one :D. Indeed you were. Thanks! -- Andrei

How to make a transparent wrapper type?

2015-12-07 Thread Random D user via Digitalmars-d-learn
I kind of miss reference values on stack, so I attempted to make one in a struct. Pointers are pretty good (since d doesn't have ->), but it would be nice to avoid dereferencing them explicitly on assignment. Since reference is a pointer that you can't change afterwards. I tried something like

Re: DConf 2016 announcements

2015-12-07 Thread Admin via Digitalmars-d
On Monday, 7 December 2015 at 18:01:31 UTC, Andrei Alexandrescu wrote: In the announce forum and social media: Please the next time you should use a proper group for this: http://forum.dlang.org/group/announce This is the first warning, follow the rules or the next time you may be banned.

Re: __traits(getAttributes, ...) gets attributes for the first overload only

2015-12-07 Thread NX via Digitalmars-d
On Sunday, 6 December 2015 at 02:00:30 UTC, Andrei Alexandrescu wrote: Yah, error is the way to go. -- Andrei Can I ask a question?: Why we don't have a way to get an exact overload of function? Something like: void foo(int i); int foo(float f); //... int function(float) foop = ::(float);

Re: benchmark on binary trees

2015-12-07 Thread visitor via Digitalmars-d-learn
On Monday, 7 December 2015 at 10:55:25 UTC, Alex wrote: On Sunday, 6 December 2015 at 12:23:52 UTC, visitor wrote: Hello, interesting exercise for me to learn about allocators :-) Nice to know, a novice can inspire someone :) i managed to parallelize the code reaching similar performance, in

[Issue 5691] walkLength() compatible with opApply()

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5691 Andrei Alexandrescu changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 5691] walkLength() compatible with opApply()

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5691 --- Comment #16 from ag0ae...@gmail.com --- (In reply to Andrei Alexandrescu from comment #15) > Sorry. (I think it was me who closed it - how can I see who did?) It wasn't you. bb.temp closed it without comment. You can see it on the "History" page:

[Issue 15417] New: Wrong parameter passing for variadic nested functions within aggregate

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15417 Issue ID: 15417 Summary: Wrong parameter passing for variadic nested functions within aggregate Product: D Version: D2 Hardware: x86_64 OS: Linux

[Issue 15418] New: Warning 178: .LIB pagesize exceeds 512

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15418 Issue ID: 15418 Summary: Warning 178: .LIB pagesize exceeds 512 Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal

[Issue 15418] Warning 178: .LIB pagesize exceeds 512

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15418 --- Comment #1 from Mike Wey --- First reported in GtkD issue 133. https://github.com/gtkd-developers/GtkD/issues/133 --

Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread John Colvin via Digitalmars-d-announce
On Monday, 7 December 2015 at 17:39:14 UTC, Andrei Alexandrescu wrote: We're over 20% full and seats are going fast! We planned to send an announcement when we're 50% sold out. However, this time around registrations are coming quite a bit quicker than before so we thought we'd keep you

Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread deadalnix via Digitalmars-d-announce
On Monday, 7 December 2015 at 17:39:14 UTC, Andrei Alexandrescu wrote: We're over 20% full and seats are going fast! We planned to send an announcement when we're 50% sold out. However, this time around registrations are coming quite a bit quicker than before so we thought we'd keep you

Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 7 December 2015 at 19:37:11 UTC, deadalnix wrote: Adam won't be coming ? I haven't decided for sure yet, but probably not. I don't like travel at all and the thought of a trans-atlantic flight strikes me as the worst.

Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Daniel Kozak via Digitalmars-d-announce
On Monday, 7 December 2015 at 20:42:21 UTC, Adam D. Ruppe wrote: On Monday, 7 December 2015 at 19:37:11 UTC, deadalnix wrote: Adam won't be coming ? I haven't decided for sure yet, but probably not. I don't like travel at all and the thought of a trans-atlantic flight strikes me as the

Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Moritz Maxeiner via Digitalmars-d-announce
On Monday, 7 December 2015 at 17:39:14 UTC, Andrei Alexandrescu wrote: We're over 20% full and seats are going fast! We planned to send an announcement when we're 50% sold out. However, this time around registrations are coming quite a bit quicker than before so we thought we'd keep you

Re: DConf 2016 announcements

2015-12-07 Thread Andrej Mitrovic via Digitalmars-d
Oin Dec 7, 2015 8:15 PM, "Admin via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: Lol!

Re: Complexity nomenclature

2015-12-07 Thread Timon Gehr via Digitalmars-d
On 12/07/2015 05:15 PM, Andrei Alexandrescu wrote: On 12/07/2015 09:43 AM, Timon Gehr wrote: 1-2) BigO("1") 3) BigO("count") 4) BigO("distance(first,last)") 5) BigO("ilist.size()") There's also this: On 12/06/2015 12:55 AM, Andrei Alexandrescu wrote: Well you'd need multiple terms if you

Re: How to make a transparent wrapper type?

2015-12-07 Thread Namespace via Digitalmars-d-learn
This seems to work: struct RefVal(T) { private T* ptr; this(T* val) { ptr = val; } ref auto opAssign(U)(auto ref U value) { *ptr = value; return *ptr; } auto

The @@@BUG@@@ the size of China - std.conv.d - Target parse(Target, Source)(ref Source s, uint radix)

2015-12-07 Thread John Carter via Digitalmars-d-learn
So whilst attempt to convert from a hex string (without the 0x) to int I bumped into the @@@BUG@@@ the size of China https://github.com/D-Programming-Language/phobos/blob/master/std/conv.d#L2270 Is there a bugzilla issue number tracking this? Searching for conv and parse in the issue

How do you create an opengl window with DerelictOrg?

2015-12-07 Thread Enjoys Math via Digitalmars-d-learn
I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples?

Re: How do you create an opengl window with DerelictOrg?

2015-12-07 Thread Alex Parrill via Digitalmars-d-learn
On Monday, 7 December 2015 at 21:33:57 UTC, Enjoys Math wrote: I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples? Derelict is just bindings for other libraries, for using C libraries with D. Pick a library that does windows management (I use GLFW,

Re: How do you create an opengl window with DerelictOrg?

2015-12-07 Thread BLM768 via Digitalmars-d-learn
On Monday, 7 December 2015 at 21:33:57 UTC, Enjoys Math wrote: I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples? OpenGL itself can't create a window/context, so you'll need to use DerelictGLFW or DerelictSDL. GLFW is lighter-weight. Combine the

Re: AA struct hashing bug?

2015-12-07 Thread Alex Parrill via Digitalmars-d-learn
On Monday, 7 December 2015 at 18:48:18 UTC, Random D user wrote: struct Foo { this( int k ) { a = k; } int a; } Foo foo; int[ Foo ] map; map[ foo ] = 1; // Crash! bug? // This also crashes. I believe crash above makes a call like this (or similar) in the rt. //auto

Re: How do you create an opengl window with DerelictOrg?

2015-12-07 Thread Enjoys Math via Digitalmars-d-learn
On Monday, 7 December 2015 at 22:01:15 UTC, BLM768 wrote: On Monday, 7 December 2015 at 21:33:57 UTC, Enjoys Math wrote: I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples? OpenGL itself can't create a window/context, so you'll need to use

Re: How do you create an opengl window with DerelictOrg?

2015-12-07 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 7 December 2015 at 22:19:17 UTC, Enjoys Math wrote: On Monday, 7 December 2015 at 22:01:15 UTC, BLM768 wrote: On Monday, 7 December 2015 at 21:33:57 UTC, Enjoys Math wrote: I've seen these: https://github.com/DerelictOrg?page=1 BUt not sure how to use them, examples? OpenGL

Re: The @@@BUG@@@ the size of China - std.conv.d - Target parse(Target, Source)(ref Source s, uint radix)

2015-12-07 Thread anonymous via Digitalmars-d-learn
On 07.12.2015 21:56, John Carter wrote: So whilst attempt to convert from a hex string (without the 0x) to int I bumped into the @@@BUG@@@ the size of China https://github.com/D-Programming-Language/phobos/blob/master/std/conv.d#L2270 Is there a bugzilla issue number tracking this?

Re: The @@@BUG@@@ the size of China - std.conv.d - Target parse(Target, Source)(ref Source s, uint radix)

2015-12-07 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/7/15 5:32 PM, anonymous wrote: On 07.12.2015 21:56, John Carter wrote: So whilst attempt to convert from a hex string (without the 0x) to int I bumped into the @@@BUG@@@ the size of China https://github.com/D-Programming-Language/phobos/blob/master/std/conv.d#L2270 Is there a

Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Mathias Lang via Digitalmars-d-announce
On Monday, 7 December 2015 at 17:39:14 UTC, Andrei Alexandrescu wrote: We're over 20% full and seats are going fast! We planned to send an announcement when we're 50% sold out. However, this time around registrations are coming quite a bit quicker than before so we thought we'd keep you

Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 12/7/15 1:21 PM, Mathias Lang wrote: On Monday, 7 December 2015 at 17:39:14 UTC, Andrei Alexandrescu wrote: We're over 20% full and seats are going fast! We planned to send an announcement when we're 50% sold out. However, this time around registrations are coming quite a bit quicker than

[Issue 15419] New: std.conv.parse() does not accept string literals

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15419 Issue ID: 15419 Summary: std.conv.parse() does not accept string literals Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: trivial

Re: Comparison operator overloading

2015-12-07 Thread Anonymous via Digitalmars-d-learn
On Monday, 7 December 2015 at 17:18:20 UTC, Dominikus Dittes Scherkl wrote: Hmm. But it works just fine! It overloads also the special floatingpoint operators <> !<> !<= and so on. Those are deprecated: http://dlang.org/deprecate.html#Floating%20point%20NCEG%20operators And how else could I

Re: AA struct hashing bug?

2015-12-07 Thread ketmar via Digitalmars-d-learn
worksforme. git HEAD, GNU/Linux, x86.

Re: DConf 2016 news: 20% sold out, book signing

2015-12-07 Thread Daniel Kozak via Digitalmars-d-announce
On Monday, 7 December 2015 at 17:39:14 UTC, Andrei Alexandrescu wrote: We're over 20% full and seats are going fast! I hope I was the first one :D. We planned to send an announcement when we're 50% sold out. However, this time around registrations are coming quite a bit quicker than before

[Issue 15336] std.json: opIn undocumented for JSONValue

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15336 --- Comment #1 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/e60c9dcf18b1b42d3b131840f975f1588ce6761d Merge pull request

[Issue 15336] std.json: opIn undocumented for JSONValue

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

[Issue 15419] std.conv.parse() does not accept string literals

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15419 thomas.bock...@gmail.com changed: What|Removed |Added Severity|trivial |enhancement --- Comment #3 from

[Issue 15419] std.conv.parse() does not accept string literals

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

[Issue 15419] std.conv.parse() does not accept string literals

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15419 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/8da9dbc2ae7a80be15a9cda8e5824cb9501178b1 Merge pull request

[Issue 15419] std.conv.parse() does not accept string literals

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15419 thomas.bock...@gmail.com changed: What|Removed |Added Resolution|FIXED |WONTFIX --- Comment #5 from

[Issue 15419] std.conv.parse() does not accept string literals

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15419 thomas.bock...@gmail.com changed: What|Removed |Added Severity|enhancement |trivial --- Comment #2 from

Re: Reset all Members of a Aggregate Instance

2015-12-07 Thread Daniel Murphy via Digitalmars-d-learn
On 4/12/2015 8:38 AM, Chris Wright wrote: An object reference is just a pointer, but we can't directly cast it. So we make a pointer to it and cast that; the type system allows it. Now we can access the data that the object reference refers to directly. Casting is fine too: cast(void*)classRef

Re: The @@@BUG@@@ the size of China - std.conv.d - Target parse(Target, Source)(ref Source s, uint radix)

2015-12-07 Thread tsbockman via Digitalmars-d-learn
On Monday, 7 December 2015 at 20:56:24 UTC, John Carter wrote: So whilst attempt to convert from a hex string (without the 0x) to int I bumped into the @@@BUG@@@ the size of China https://github.com/D-Programming-Language/phobos/blob/master/std/conv.d#L2270 Is there a bugzilla issue

Re: The @@@BUG@@@ the size of China - std.conv.d - Target parse(Target, Source)(ref Source s, uint radix)

2015-12-07 Thread tsbockman via Digitalmars-d-learn
On Monday, 7 December 2015 at 22:38:03 UTC, Steven Schveighoffer wrote: It's an old bug, if it still exists. But in any case, the description is terrible. A real bug report should be filed. -Steve Filed (https://issues.dlang.org/show_bug.cgi?id=15419) and fixed

Re: __traits(getAttributes, ...) gets attributes for the first overload only

2015-12-07 Thread Jakob Ovrum via Digitalmars-d
On Monday, 7 December 2015 at 23:52:38 UTC, NX wrote: On Sunday, 6 December 2015 at 02:00:30 UTC, Andrei Alexandrescu wrote: Yah, error is the way to go. -- Andrei Can I ask a question?: Why we don't have a way to get an exact overload of function? Something like: void foo(int i); int

[Issue 15419] std.conv.parse() does not accept string literals

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15419 yebblies changed: What|Removed |Added CC||yebbl...@gmail.com

Re: AA struct hashing bug?

2015-12-07 Thread Ivan Kazmenko via Digitalmars-d-learn
On Monday, 7 December 2015 at 22:03:42 UTC, Alex Parrill wrote: On Monday, 7 December 2015 at 18:48:18 UTC, Random D user wrote: struct Foo { this( int k ) { a = k; } int a; } Foo foo; int[ Foo ] map; map[ foo ] = 1; // Crash! bug? // This also crashes. I believe

Re: Reset all Members of a Aggregate Instance

2015-12-07 Thread Chris Wright via Digitalmars-d-learn
On Tue, 08 Dec 2015 14:12:02 +1100, Daniel Murphy wrote: > On 4/12/2015 8:38 AM, Chris Wright wrote: >> An object reference is just a pointer, but we can't directly cast it. >> So we make a pointer to it and cast that; the type system allows it. >> Now we can access the data that the object

Re: __traits(getAttributes, ...) gets attributes for the first overload only

2015-12-07 Thread Walter Bright via Digitalmars-d
On 12/5/2015 2:42 PM, Andrei Alexandrescu wrote: Thanks, the code is easy to fix but my question is in regard to a potential bug. https://www.youtube.com/watch?v=34ag4nkSh7Q=player_detailpage#t=27