[Issue 14737] [REG2.058] A concatenation of array literal and static array should make dynamic array

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14737 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Hardware|x86_64 |All

[Issue 14735] [REG2.068-b1] std.string.indexOf cannot deduce function for char argument

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14735 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Component|dmd |phobos --- Comment #2 from

[Issue 14733] unable to link with odbc on linux. dmd_2.068.0~b1-0_i386.deb

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14733 john.sevsk john.se...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14681] Add a way to specify a file import's contents on the command line

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14681 --- Comment #5 from yebblies yebbl...@gmail.com --- (In reply to Walter Bright from comment #4) The version feature is deliberately restrictive. Setting variables from the command line is most often a failure to design the code properly. I don't

Re: version: multiple conditions

2015-06-26 Thread Daniel Murphy via Digitalmars-d
Walter Bright wrote in message news:mloslo$1o7v$1...@digitalmars.com... I have yet to see a single case of needing boolean versions that could not be refactored into something much more readable and maintainable that did not use such. Over time, I've gotten rid of most of that stuff from

Re: std.string.entabber, detabber, left/right/centerJustifier, soundexer

2015-06-26 Thread Suliman via Digitalmars-d
IMO, when naming things, generally we should lean towards representing semantics rather than mechanics (i.e. how is this function going to be used, rather than what this function does under the hood), as that will result in more readable code. +1

[Issue 14480] dmd 2.067 x64 release codegen

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14480 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment #13

Re: Presentation Intro to D: What works?

2015-06-26 Thread thedeemon via Digitalmars-d
On Friday, 26 June 2015 at 04:43:08 UTC, Rikki Cattermole wrote: Looks like I will give a talk about D to our local Functional Programming User Group in August. irk be careful when showing off ranges. Get some damn good background of what D is first. It took me well over a year before I

Re: Presentation Intro to D: What works?

2015-06-26 Thread rsw0x via Digitalmars-d
On Friday, 26 June 2015 at 07:00:22 UTC, thedeemon wrote: On Friday, 26 June 2015 at 04:43:08 UTC, Rikki Cattermole wrote: Looks like I will give a talk about D to our local Functional Programming User Group in August. irk be careful when showing off ranges. Get some damn good background of

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Iain Buclaw via Digitalmars-d
On 25 Jun 2015 12:16, ponce via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 24 June 2015 at 16:10:44 UTC, Iain Buclaw wrote: http://www.microsoft.com/en-us/server-cloud/products/windows-server-2003/ Which means that (strictly speaking), in 3 weeks time, there will be *no*

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Iain Buclaw via Digitalmars-d
On 26 Jun 2015 09:28, Iain Buclaw ibuc...@gdcproject.org wrote: On 25 Jun 2015 12:16, ponce via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 24 June 2015 at 16:10:44 UTC, Iain Buclaw wrote: http://www.microsoft.com/en-us/server-cloud/products/windows-server-2003/

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread rsw0x via Digitalmars-d
On Thursday, 25 June 2015 at 20:10:30 UTC, Dmitry Olshansky wrote: On 25-Jun-2015 23:06, Steven Schveighoffer wrote: On 6/25/15 3:58 PM, Jacob Carlborg wrote: On 25/06/15 18:46, Nick Sabalausky wrote: Heh, that's awesome actually :) Got a source for that? Windows 8 was a big failure.

[Issue 14480] dmd 2.067 x64 release codegen

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14480 --- Comment #14 from fen...@gmail.com --- (In reply to Martin Nowak from comment #13) (In reply to ponce from comment #12) For more images: https://github.com/p0nce/dplug/issues/35 Images don't really help. From similar issues with

Re: I released my first library!

2015-06-26 Thread Idle Reef Fly via Digitalmars-d
On Thursday, 25 June 2015 at 14:56:34 UTC, Vladde Nordholm wrote: For the past week I've been working on my first small cross-platform gamedev-ish console rendering library for d, and I call it clayers. It has been a fun learning process, as I've used many new programs and features. [...]

D needs a programming blog and some house keeping

2015-06-26 Thread biorelated via Digitalmars-d
I have only recently stated learning D,coming from Ruby/Python/Perl dynamic languages. I bought TDPL and I have read Ali's book and I bought Adam Ruppe's D programming language cookbook. These are amazing books and they have taught me a lot. more than I ever knew and I have to thank D and

[Issue 14480] dmd 2.067 x64 release codegen

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14480 --- Comment #15 from ponce alil...@gmail.com --- Have you tried gdc/ldc? I'm sorry I've tried it all and this is way beyond me. GDC doesn't build my code on Windows (bug reported). LDC doesn't build my code either (bugs reported). I've tried to

Re: Beta D 2.068.0-b1

2015-06-26 Thread Mike via Digitalmars-d-announce
On Thursday, 25 June 2015 at 07:48:24 UTC, Iain Buclaw wrote: More importantly, will all cross-platform regressions introduced in the development cycle of 2.068 be fixed? :-) And, for your convenience the current list of regressions is here:

Re: D needs a programming blog and some house keeping

2015-06-26 Thread Andrei Alexandrescu via Digitalmars-d
On 6/26/15 2:19 AM, weaselcat wrote: After watching the hilarious fiascos that have fallen upon the Rust community that I won't go into Prolly worth going into. We should learn from the good and bad of other languages (not to mention ours). -- Andrei

Re: using new in shared library causes access violation

2015-06-26 Thread Adam D. Ruppe via Digitalmars-d-learn
Did you call Runtime.initialized in the D side of that initialization fucntion?

Re: Abstract sockets (linux)

2015-06-26 Thread Kagamin via Digitalmars-d-learn
On Friday, 26 June 2015 at 13:36:49 UTC, freeman wrote: This works (socat): connect(3, {sa_family=AF_FILE, path=@/var/run/ptmd.socket}, 23) = 0 This does not (from deneme, modified): connect(3, {sa_family=AF_FILE, path=@/var/run/ptmd.socket}, 24) = -1 ECONNREFUSED (Connection

[Issue 11368] Couldn't Mago debugger be the default debugger engine?

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11368 ponce alil...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Dmitry Olshansky via Digitalmars-d
On 26-Jun-2015 10:35, rsw0x wrote: On Thursday, 25 June 2015 at 20:10:30 UTC, Dmitry Olshansky wrote: On 25-Jun-2015 23:06, Steven Schveighoffer wrote: On 6/25/15 3:58 PM, Jacob Carlborg wrote: On 25/06/15 18:46, Nick Sabalausky wrote: Heh, that's awesome actually :) Got a source for that?

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Jonathan M Davis via Digitalmars-d
On Friday, 26 June 2015 at 10:40:25 UTC, Dejan Lekic wrote: I do not know about others, but I am using XP, and have no plan to move to something else any time soon. However, I am using it rarely, in a VM, whenever I need to test something on Windows. I have no plan of buying a newer Windows. I

[Issue 14430] [REG2.060] Null parameter is detected as non-null.

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14430 --- Comment #11 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/b53c44ed001b113c2f44cf7590ef28630398a5df fix Issue 14430 -

[Issue 14737] [REG2.058] A concatenation of array literal and static array should make dynamic array

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14737 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #3 from

More Dconf 2015 videos

2015-06-26 Thread Andrei Alexandrescu via Digitalmars-d-announce
Please continue to spread the love (twitter, reddit, hackernews, facebook, your blog...): https://www.youtube.com/watch?v=rmRmfoKxMCE https://www.youtube.com/watch?v=1W6uhX6AITM https://www.youtube.com/watch?v=1W6uhX6AITM Andrei

Re: using new in shared library causes access violation

2015-06-26 Thread dd0s via Digitalmars-d-learn
On Friday, 26 June 2015 at 16:32:44 UTC, Adam D. Ruppe wrote: Did you call Runtime.initialized in the D side of that initialization fucntion? No i wasn't aware of that. Thank you so much Adam. I still don't know what it does exactly but i just call it when OnPluginInit() is called. Are you

Re: Help the old man learn D

2015-06-26 Thread Charles Hawkins via Digitalmars-d-learn
On Friday, 26 June 2015 at 15:33:25 UTC, Charles Hawkins wrote: On Friday, 26 June 2015 at 14:52:51 UTC, Marc Schütz wrote: On Friday, 26 June 2015 at 14:39:05 UTC, Charles Hawkins wrote: [...] I think I've answered my own question regarding the callbacks as well. I realized that the only

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Kapps via Digitalmars-d
On Thursday, 25 June 2015 at 19:58:14 UTC, Jacob Carlborg wrote: On 25/06/15 18:46, Nick Sabalausky wrote: Heh, that's awesome actually :) Got a source for that? Windows 8 was a big failure. Windows 10 is looking much better, I think it will get a much higher adaption rate. Off-topic,

Re: std.experimental.testing PR review

2015-06-26 Thread Dicebot via Digitalmars-d
On Friday, 26 June 2015 at 15:32:47 UTC, Jacob Carlborg wrote: On 26/06/15 15:32, Dicebot wrote: Just in case it wasn't clear : I will vote no on this proposal as long as it features longish readable names like shouldEquals. You would vote no because of this? Totally. Remember - this is

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Nick Sabalausky via Digitalmars-d
On 06/25/2015 04:06 PM, Steven Schveighoffer wrote: On 6/25/15 3:58 PM, Jacob Carlborg wrote: On 25/06/15 18:46, Nick Sabalausky wrote: Heh, that's awesome actually :) Got a source for that? Windows 8 was a big failure. Windows 10 is looking much better, I think it will get a much higher

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Dicebot via Digitalmars-d
Judging purely by feature set, Win 10 looks first Windows ever which will actually be usable for work. At least it will have multiple desktops and primitive package management. And no, Windows XP was not usable by any means. It isn't a good enough reason to switch back to Windows though :)

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Nick Sabalausky via Digitalmars-d
On 06/26/2015 07:26 AM, weaselcat wrote: Might as well just use wine, it's pretty darn good nowadays. Relatively speaking. I'm definitely glad to have it, but I still have occasional problems with it, with various programs. For example, I had to give up my favorite code editor because of

using new in shared library causes access violation

2015-06-26 Thread dd0s via Digitalmars-d-learn
hi, I have a c++ program with a plugin system and i try to write a plugin for it. when the plugin is loaded by the program the extern (C) int OnInit() method is called. so far everything works fine. But as soon as i try to create a new class instance a segmentation fault occurs ( the

Re: More Dconf 2015 videos

2015-06-26 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 6/26/15 9:28 AM, Gary Willoughby wrote: On Friday, 26 June 2015 at 15:54:51 UTC, Andrei Alexandrescu wrote: Please continue to spread the love (twitter, reddit, hackernews, facebook, your blog...): https://www.youtube.com/watch?v=rmRmfoKxMCE https://www.youtube.com/watch?v=1W6uhX6AITM

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Nick Sabalausky via Digitalmars-d
On 06/26/2015 07:31 AM, Jonathan M Davis wrote: Well, be aware that we don't officially support XP and haven't for a while. Odds are, it'll work in most cases, but there may be functionality in druntime or Phobos which relies on system calls added to Windows in Vista. So, while you're obviously

Re: Phobos addition formal review: std.experimental.allocator

2015-06-26 Thread Alex Parrill via Digitalmars-d
The Windows MMap allocator only keeps one HANDLE around, and creates a new one on each `allocate`. Thus, `deallocate` closes the latest handle, regardless of what it was actually passed, so it leaks. If I'm reading the docs for `CreateFileMapping` right, you should be able to close the

Re: std.experimental.testing PR review

2015-06-26 Thread Dmitry Olshansky via Digitalmars-d
On 26-Jun-2015 17:30, Atila Neves wrote: On Friday, 26 June 2015 at 13:32:39 UTC, Dicebot wrote: Just in case it wasn't clear : I will vote no on this proposal as long as it features longish readable names like shouldEquals. You'd rather `should!==`? I'm not sure which I'd prefer; the thing

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Nick Sabalausky via Digitalmars-d
On 06/26/2015 07:34 AM, Dmitry Olshansky wrote: On 26-Jun-2015 10:35, rsw0x wrote: On Thursday, 25 June 2015 at 20:10:30 UTC, Dmitry Olshansky wrote: AFAIK they found that way too many apps do checks like: if(windowsVersion.startsWith(Windows 9){ // use crappy legacy-compatible code } else{

Re: std.experimental.testing PR review

2015-06-26 Thread Jacob Carlborg via Digitalmars-d
On 26/06/15 15:32, Dicebot wrote: Just in case it wasn't clear : I will vote no on this proposal as long as it features longish readable names like shouldEquals. You would vote no because of this? -- /Jacob Carlborg

[Issue 14430] [REG2.060] Null parameter is detected as non-null.

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14430 --- Comment #12 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d6a13be63392ea2d6c2eac369a8b6e2c42b2492b Merge pull request #4775

[Issue 14736] [REG2.060] Function Default Parameters Are Lost

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14736 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14682] [REG2.037] Incorrect interpretation of ~ []

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14682 --- Comment #15 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e23ff7c0e4f9de3f4dd6352e261ee430466d7ddb Merge pull request #4742

[Issue 14572] cannot build dmd from source anymore: 'g++ -m64: No such file or directory'

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14572 --- Comment #8 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/65ce308abc30e0f31fa118326840da14043adf5f Merge pull request #4772

[Issue 14699] [REG2.062] ICE: segfaults on array with zero size

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14699 --- Comment #11 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/72f759961d08ed9a4e0da2e1d81608fed9a0d7b6 Merge pull request #4744

Re: std.experimental.testing PR review

2015-06-26 Thread Atila Neves via Digitalmars-d
On Friday, 26 June 2015 at 13:14:40 UTC, Adam D. Ruppe wrote: Nothing jumps out at me as being especially bad. The posix escape codes could also be Windows compatible by rewriting them somehow, instead of building a string, make a struct message { int color; string text; } or something that

Re: std.experimental.testing PR review

2015-06-26 Thread David Gileadi via Digitalmars-d
On 6/26/15 7:30 AM, Atila Neves wrote: On Friday, 26 June 2015 at 13:32:39 UTC, Dicebot wrote: Just in case it wasn't clear : I will vote no on this proposal as long as it features longish readable names like shouldEquals. You'd rather `should!==`? I'm not sure which I'd prefer; the thing is

Re: Phobos addition formal review: std.experimental.allocator

2015-06-26 Thread Alex Parrill via Digitalmars-d
On Friday, 26 June 2015 at 14:56:21 UTC, Dmitry Olshansky wrote: On 26-Jun-2015 17:51, Alex Parrill wrote: The Windows MMap allocator only keeps one HANDLE around, and creates a new one on each `allocate`. Thus, `deallocate` closes the latest handle, regardless of what it was actually passed,

Re: Help the old man learn D

2015-06-26 Thread via Digitalmars-d-learn
On Friday, 26 June 2015 at 14:39:05 UTC, Charles Hawkins wrote: Thanks. I've changed to thread topic to Help the old man learn D. :) logger package allows those statements to compile with gdc although I'm now getting lots of errors saying undefined identifier format even though I'm importing

Re: std.experimental.testing PR review

2015-06-26 Thread Atila Neves via Digitalmars-d
On Friday, 26 June 2015 at 13:32:39 UTC, Dicebot wrote: Just in case it wasn't clear : I will vote no on this proposal as long as it features longish readable names like shouldEquals. You'd rather `should!==`? I'm not sure which I'd prefer; the thing is that so far you're the only one

[Issue 14731] [REG2.068a] Error location insufficient when CTFE

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14731 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f491e5604009e40ad96cc7ecad6979975776a200 Merge pull request #4771

[Issue 13720] [REG2.067] Adding trivial destructor to std.datetime causes Internal error: ..\ztc\cgelem.c 2418

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13720 --- Comment #7 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/742f467c137c8dc6e42d0a4d0863d5bc6b0f Merge pull request #4759

Re: Abstract sockets (linux)

2015-06-26 Thread freeman via Digitalmars-d-learn
On Thursday, 25 June 2015 at 15:56:06 UTC, freeman wrote: I am having trouble using abstract sockets on Linux. Here is sample python code that works, which works: ptm_sockname = \0/var/run/ptmd.socket sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)

Help the old man learn D

2015-06-26 Thread Charles Hawkins via Digitalmars-d-learn
On Wednesday, 24 June 2015 at 16:21:47 UTC, weaselcat wrote: On Wednesday, 24 June 2015 at 07:52:10 UTC, Charles Hawkins wrote: On Wednesday, 24 June 2015 at 06:54:57 UTC, weaselcat wrote: On Tuesday, 23 June 2015 at 06:50:28 UTC, Charles Hawkins wrote: [...] you can instruct dub to use

Re: Phobos addition formal review: std.experimental.allocator

2015-06-26 Thread Dmitry Olshansky via Digitalmars-d
On 26-Jun-2015 17:51, Alex Parrill wrote: The Windows MMap allocator only keeps one HANDLE around, and creates a new one on each `allocate`. Thus, `deallocate` closes the latest handle, regardless of what it was actually passed, so it leaks. Actually I don't see why Windows couldnt' just use

Re: Help the old man learn D

2015-06-26 Thread Charles Hawkins via Digitalmars-d-learn
On Friday, 26 June 2015 at 14:52:51 UTC, Marc Schütz wrote: On Friday, 26 June 2015 at 14:39:05 UTC, Charles Hawkins wrote: Thanks. I've changed to thread topic to Help the old man learn D. :) logger package allows those statements to compile with gdc although I'm now getting lots of errors

Re: std.experimental.testing PR review

2015-06-26 Thread Jacob Carlborg via Digitalmars-d
On 26/06/15 17:20, David Gileadi wrote: Let's paint this bikeshed! I tend to like must instead of should; it's a bit shorter and stronger. I prefer should. I tend to like dot-separated English for testing, e.g. throwRangeError.must.throw!RangeError; One advantage is that the dot after

Re: Help the old man learn D

2015-06-26 Thread via Digitalmars-d-learn
On Friday, 26 June 2015 at 16:57:14 UTC, Charles Hawkins wrote: Sorry for talking to myself, but I'm hoping someone will help me out. The above idea doesn't work. It appears that only the main program file is going to have function pointers while modules and classes will have delegates. So,

Re: Abstract sockets (linux)

2015-06-26 Thread Ali Çehreli via Digitalmars-d-learn
On 06/26/2015 07:39 AM, freeman wrote: Is this worthy of a bug report? If it's a bug, yes. :) Ali

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Nick Sabalausky via Digitalmars-d
On 06/26/2015 12:09 PM, Dicebot wrote: Judging purely by feature set, Win 10 looks first Windows ever which will actually be usable for work. It'll still look like unicorn vomit, though. And they don't let you change that anymore. And MS doesn't let you reconfigure much these days, so you

Re: dmd -profile=gc

2015-06-26 Thread Yuxuan Shui via Digitalmars-d
On Sunday, 3 May 2015 at 21:11:58 UTC, Walter Bright wrote: Just merged in is a new compiler switch that instruments generated code to collect statistics on memory allocation usage and generates a report upon program termination. (Much like how -profile works.) This was based on a prototype

Heisenbug involving Destructors GC - Help Needed

2015-06-26 Thread Maxime Chevalier-Boisvert via Digitalmars-d
I seem to have run into a heisenbug involving destructors and the GC. I'm kind of stuck at this point and need help tracking down the issue. I put the broken code in a branch called heisenbug on github: https://github.com/higgsjs/Higgs/tree/heisenbug The problem manifests itself on runs of

Re: More Dconf 2015 videos

2015-06-26 Thread extrawurst via Digitalmars-d-announce
On Friday, 26 June 2015 at 16:42:23 UTC, Andrei Alexandrescu wrote: On 6/26/15 9:28 AM, Gary Willoughby wrote: On Friday, 26 June 2015 at 15:54:51 UTC, Andrei Alexandrescu wrote: Please continue to spread the love (twitter, reddit, hackernews, facebook, your blog...):

Why aren't Ranges Interfaces?

2015-06-26 Thread Jack Stouffer via Digitalmars-d-learn
I have been learning D over the past three weeks and I came to the chapter in Programming in D on Ranges. And I am a little confused on the choice to make Ranges based on the methods you have in the struct, but not use a interface. With all of the isInputRange!R you have to write everywhere,

Re: Why aren't Ranges Interfaces?

2015-06-26 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 26 June 2015 at 18:37:51 UTC, Jack Stouffer wrote: The only reason I can think of to not do it this way is the weird distinction between structs and classes in D. If anything, C++ is the weird one in having two keywords that mean the same thing... But the reason comes down to

Re: More Dconf 2015 videos

2015-06-26 Thread Andy Smith via Digitalmars-d-announce
On Friday, 26 June 2015 at 18:43:50 UTC, Andrei Alexandrescu wrote: On 6/26/15 11:03 AM, extrawurst wrote: On Friday, 26 June 2015 at 16:42:23 UTC, Andrei Alexandrescu wrote: On 6/26/15 9:28 AM, Gary Willoughby wrote: On Friday, 26 June 2015 at 15:54:51 UTC, Andrei Alexandrescu wrote: Please

[Issue 14737] [REG2.058] A concatenation of array literal and static array should make dynamic array

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14737 --- 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/05101662d1d7ed8df51f391b993d3640496df51d fix Issue 14737 - A

Re: More Dconf 2015 videos

2015-06-26 Thread David Gileadi via Digitalmars-d-announce
On 6/26/15 12:03 PM, Andy Smith wrote: I don't want to sound negative but the editing of Chuck's talk could be a lot better IMHO. Round about 30:00 he describes a code example which isn't shown in the video!. He's making multiple references to lines/code etc. that were visible to the attendees

Re: Why aren't Ranges Interfaces?

2015-06-26 Thread Jack Stouffer via Digitalmars-d-learn
Thanks for the reply! I understand the reasoning now. On Friday, 26 June 2015 at 18:46:03 UTC, Adam D. Ruppe wrote: 2) interfaces have an associated runtime cost, which ranges wanted to avoid. They come with hidden function pointers and if you actually use it through them, you can get a

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread data man via Digitalmars-d
On Wednesday, 24 June 2015 at 16:10:44 UTC, Iain Buclaw wrote: [...] Win Xp, 7, 8, 10, ... ReactOS - This Is The Future! :-) http://reactos.org

Re: Why aren't Ranges Interfaces?

2015-06-26 Thread Jack Stouffer via Digitalmars-d-learn
On Friday, 26 June 2015 at 19:40:41 UTC, rsw0x wrote: On Friday, 26 June 2015 at 19:26:57 UTC, Jack Stouffer wrote: Thanks for the reply! I understand the reasoning now. On Friday, 26 June 2015 at 18:46:03 UTC, Adam D. Ruppe wrote: 2) interfaces have an associated runtime cost, which ranges

Re: More Dconf 2015 videos

2015-06-26 Thread bachmeier via Digitalmars-d-announce
On Friday, 26 June 2015 at 19:03:11 UTC, Andy Smith wrote: I don't want to sound negative but the editing of Chuck's talk could be a lot better IMHO. Round about 30:00 he describes a code example which isn't shown in the video!. He's making multiple references to lines/code etc. that were

Re: What D Needs…

2015-06-26 Thread jmh530 via Digitalmars-d
On Friday, 26 June 2015 at 09:12:04 UTC, Russel Winder wrote: I think I may not be doing that review now as I have started on trying to get Chapel working well with Python 3. C++, D, Rust, Go are millennia behind Chapel in terms of managing local and cluster parallelism: Chapel is a PGAS

Re: Why aren't Ranges Interfaces?

2015-06-26 Thread Ali Çehreli via Digitalmars-d-learn
On 06/26/2015 11:37 AM, Jack Stouffer wrote: easier if the different types of Ranges where just interfaces that you could inherit from. If you think you need polymorphic interfaces, the next chapter talks about inputRangeObject():

Re: Why aren't Ranges Interfaces?

2015-06-26 Thread rsw0x via Digitalmars-d-learn
On Friday, 26 June 2015 at 19:26:57 UTC, Jack Stouffer wrote: Thanks for the reply! I understand the reasoning now. On Friday, 26 June 2015 at 18:46:03 UTC, Adam D. Ruppe wrote: 2) interfaces have an associated runtime cost, which ranges wanted to avoid. They come with hidden function pointers

Re: Heisenbug involving Destructors GC - Help Needed

2015-06-26 Thread Maxime Chevalier-Boisvert via Digitalmars-d
On Friday, 26 June 2015 at 18:27:34 UTC, Maxime Chevalier-Boisvert wrote: I seem to have run into a heisenbug involving destructors and the GC. I'm kind of stuck at this point and need help tracking down the issue. [...] I should add that I'm running Ubuntu 12.04, 64-bit, and using DMD

Re: Why aren't Ranges Interfaces?

2015-06-26 Thread Dicebot via Digitalmars-d-learn
On Friday, 26 June 2015 at 19:26:57 UTC, Jack Stouffer wrote: How much of a performance hit are we talking about? Is the difference between using an interface and not using one noticeable? It can be huge difference if you take inlning in mind. LDC is capable of flattening most simple

Re: Typed Message Passing between D Processes

2015-06-26 Thread Laeeth Isharc via Digitalmars-d-learn
On Friday, 26 June 2015 at 11:13:11 UTC, Per Nordlöw wrote: On Friday, 26 June 2015 at 10:23:26 UTC, Laeeth Isharc wrote: On Friday, 26 June 2015 at 09:06:18 UTC, Per Nordlöw wrote: On Thursday, 25 June 2015 at 23:23:01 UTC, Laeeth Isharc wrote: not sure if this is quite what you are looking

Re: More Dconf 2015 videos

2015-06-26 Thread Andy Smith via Digitalmars-d-announce
I don't want to sound negative but the editing of Chuck's talk could be a lot better IMHO. Round about 30:00 he describes a code example which isn't shown in the video!. He's making multiple references to lines/code etc. that were visible to the attendees at the conference but aren't visible

Re: More Dconf 2015 videos

2015-06-26 Thread Walter Bright via Digitalmars-d-announce
On 6/26/2015 1:13 PM, Brad Anderson wrote: On Friday, 26 June 2015 at 15:54:51 UTC, Andrei Alexandrescu wrote: Please continue to spread the love (twitter, reddit, hackernews, facebook, your blog...): https://www.youtube.com/watch?v=rmRmfoKxMCE https://www.youtube.com/watch?v=1W6uhX6AITM

Re: Why aren't Ranges Interfaces?

2015-06-26 Thread rsw0x via Digitalmars-d-learn
On Friday, 26 June 2015 at 18:37:51 UTC, Jack Stouffer wrote: I have been learning D over the past three weeks and I came to the chapter in Programming in D on Ranges. And I am a little confused on the choice to make Ranges based on the methods you have in the struct, but not use a interface.

[Issue 14738] New: core.atomic arguments are inconsistent

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14738 Issue ID: 14738 Summary: core.atomic arguments are inconsistent Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity: enhancement

Re: Why aren't Ranges Interfaces?

2015-06-26 Thread Justin Whear via Digitalmars-d-learn
On Fri, 26 Jun 2015 19:26:56 +, Jack Stouffer wrote: Thanks for the reply! I understand the reasoning now. On Friday, 26 June 2015 at 18:46:03 UTC, Adam D. Ruppe wrote: 2) interfaces have an associated runtime cost, which ranges wanted to avoid. They come with hidden function pointers

Re: More Dconf 2015 videos

2015-06-26 Thread Brad Anderson via Digitalmars-d-announce
On Friday, 26 June 2015 at 20:32:56 UTC, Walter Bright wrote: Monday morning is probably a better time, due to Reddit usage patterns. Weekends tend to not get nearly so much traffic. Also, I completely spaced that I'll be on the road all day and not back until Tuesday. It'll have to be

Re: function default parameters lost

2015-06-26 Thread Paul D Anderson via Digitalmars-d-learn
On Thursday, 25 June 2015 at 14:17:13 UTC, Paul D Anderson wrote: On Thursday, 25 June 2015 at 07:10:57 UTC, tcak wrote: On Thursday, 25 June 2015 at 04:43:51 UTC, Paul D Anderson wrote: I'm trying to pass a function pointer while keeping the default parameter values intact. Given the

Re: What D Needs…

2015-06-26 Thread John Colvin via Digitalmars-d
On Friday, 26 June 2015 at 09:12:04 UTC, Russel Winder wrote: On Mon, 2015-06-22 at 02:40 +, Laeeth Isharc via Digitalmars-d wrote: [...] […] [...] I'll see if I can check this out. n-dimensional slices: https://github.com/D-Programming-Language/phobos/pull/3397 DlangScience:

Re: D Language Runtime (klickverbot) - DConf 2015

2015-06-26 Thread David Nadlinger via Digitalmars-d-announce
On Wednesday, 24 June 2015 at 20:14:02 UTC, Walter Bright wrote: https://www.reddit.com/r/programming/comments/3axgwn/d_language_runtime_klickverbot_dconf_2015/ David, could you please post an AMA there? Done. I didn't even see your prompt before I did so. ;) - David

Re: D Language Runtime (klickverbot) - DConf 2015

2015-06-26 Thread David Nadlinger via Digitalmars-d-announce
On Wednesday, 24 June 2015 at 20:43:07 UTC, rsw0x wrote: He briefly mentions rtinfo then says it's not part of the talk, is RTinfo actually used for anything? AFAICT it's just a dummy value at the moment. Yes, it is just a dummy value in the upstream druntime repo, but people have been

Re: auto ref is on the docket

2015-06-26 Thread Jonathan M Davis via Digitalmars-d
On Saturday, 27 June 2015 at 00:13:08 UTC, kinke wrote: On Thursday, 25 June 2015 at 10:10:42 UTC, Jonathan M Davis wrote: Whether a reference escapes is an orthogonal issue. The return attribute is for dealing with that. The function should be able to return by ref or not and still accept

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-26 Thread Jonathan M Davis via Digitalmars-d
On Friday, 26 June 2015 at 16:45:45 UTC, Nick Sabalausky wrote: On 06/26/2015 07:31 AM, Jonathan M Davis wrote: Well, be aware that we don't officially support XP and haven't for a while. Odds are, it'll work in most cases, but there may be functionality in druntime or Phobos which relies on

Re: auto ref is on the docket

2015-06-26 Thread kinke via Digitalmars-d
On Thursday, 25 June 2015 at 10:10:42 UTC, Jonathan M Davis wrote: Whether a reference escapes is an orthogonal issue. The return attribute is for dealing with that. The function should be able to return by ref or not and still accept both rvalues and lvalues for its parameters. As long as the

Re: std.experimental.testing PR review

2015-06-26 Thread Atila Neves via Digitalmars-d
On Friday, 26 June 2015 at 15:20:43 UTC, David Gileadi wrote: On 6/26/15 7:30 AM, Atila Neves wrote: On Friday, 26 June 2015 at 13:32:39 UTC, Dicebot wrote: Just in case it wasn't clear : I will vote no on this proposal as long as it features longish readable names like shouldEquals. You'd

Re: how do I create an array of objects as member of class?

2015-06-26 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 26 June 2015 at 21:50:30 UTC, Assembly wrote: class Baa { Foo a = new Foo(); Foo b = new Foo(); Foo[] l = [a,b]; Keep in mind that those instances are *static* and probably not what you expect; modifying a will be seen across all instances of Baa unless you actually assign

Re: Typed Message Passing between D Processes

2015-06-26 Thread Atila Neves via Digitalmars-d-learn
On Friday, 26 June 2015 at 12:31:04 UTC, Dicebot wrote: std.concurrency was supposed to be able to handle that by design but it is impossible to do without any sort of standard serialization utility in Phobos (and, ideally, very fast binary serialization utility) I'd have to benchmark it

[Issue 14739] New: Immutable alias to template triggers dmd assert

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14739 Issue ID: 14739 Summary: Immutable alias to template triggers dmd assert Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: enhancement

[Issue 14739] Immutable alias to template triggers dmd assert

2015-06-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14739 --- Comment #1 from joeyemm...@yahoo.com --- Should have said DMD32 D Compiler v2.067.1 --

Re: D needs a programming blog and some house keeping

2015-06-26 Thread David DeWitt via Digitalmars-d
Im new to D too and while blogs are great, I don't care that much for them or twitter. I think the most important step for D is to get more official tools and packages. If you want to get ppl interested in D beyond a core group you need solid web frameworks and official clients/libraries for

Static constructors guaranteed to run?

2015-06-26 Thread Tofu Ninja via Digitalmars-d-learn
Are static constructors guaranteed to run if the module is imported? Also are static constructors in templated types guaranteed to run for every instantiation? Even if the instantiation is never actually used outside of compile time code, like in an alias or in a UDA?

Re: More Dconf 2015 videos

2015-06-26 Thread Mike via Digitalmars-d-announce
On Friday, 26 June 2015 at 18:43:50 UTC, Andrei Alexandrescu wrote: It is planned inasmuch people send pull requests for it. -- Andrei A pull request was submitted a couple of days ago. https://github.com/D-Programming-Language/dconf.org/pull/81 I added these new videos today. There's work

how do I create an array of objects as member of class?

2015-06-26 Thread Assembly via Digitalmars-d-learn
Imaginary code: class Foo { } class Baa { Foo a = new Foo(); Foo b = new Foo(); Foo[] l = [a,b]; } What should I use instead of to it work? Array!Foo(a,b) didn't worked either. I know this works: class Baa { Foo a = new Foo(); Foo b = new Foo(); Foo[] l; this() { l = [a,b]; }

  1   2   >