[Issue 15014] Win64: Invalid C++ mangling for multiple long arguments

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15014 Rainer Schuetze changed: What|Removed |Added Keywords||link-failure, pull

Re: dmd codegen improvements

2015-09-05 Thread Iain Buclaw via Digitalmars-d
On 5 Sep 2015 6:31 am, "Manu via Digitalmars-d" wrote: > > On 5 September 2015 at 14:14, Walter Bright via Digitalmars-d > wrote: > > On 9/4/2015 7:52 AM, Manu via Digitalmars-d wrote: > >> > >> [...] > > > > > > Sadly, your newsgroup

Re: dmd codegen improvements

2015-09-05 Thread Walter Bright via Digitalmars-d
On 9/5/2015 1:00 AM, Iain Buclaw via Digitalmars-d wrote: On 5 Sep 2015 6:31 am, "Manu via Digitalmars-d" > wrote: > > On 5 September 2015 at 14:14, Walter Bright via Digitalmars-d >

Re: Behavior of opEquals

2015-09-05 Thread Jonathan M Davis via Digitalmars-d
On Friday, 4 September 2015 at 19:25:35 UTC, H. S. Teoh wrote: Wait, wait, did I miss something? Since when was operator overloading allowed as free functions? Or is opEquals a special case? Clearly, you haven't read TDPL recently enough. ;) There is a free function, opEquals, in object.d

Re: Containers

2015-09-05 Thread Dmitry Olshansky via Digitalmars-d
On 05-Sep-2015 05:36, bitwise wrote: On Friday, 4 September 2015 at 23:15:54 UTC, Andrei Alexandrescu wrote: [...] My thinking is that significant work in this(this) is poor D style. Eager copying for containers doesn't seem like the best way to go. -- Andrei I feel should add that I still

Re: Possible solution for export : `unittest export`?

2015-09-05 Thread Joseph Rushton Wakeling via Digitalmars-d
On Tuesday, 1 September 2015 at 18:25:06 UTC, H. S. Teoh wrote: On Tue, Sep 01, 2015 at 06:14:05PM +, deadalnix via Digitalmars-d wrote: A ton of code is not unitestable. GUI as a starter. Random number generator. Very rare events handling outside the control of the program. Concurent

Re: Abstractioning away main/winMain

2015-09-05 Thread anonymous via Digitalmars-d-learn
On Saturday 05 September 2015 07:52, anonymous wrote: > This doesn't work because delegates and static initialization don't go > together. You can use a static constructor: > > > const Application MyApp; > static this() > { > Application.New({import std.stdio; std.stdio.writeln("MY APP

Re: Behavior of opEquals

2015-09-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-05 08:26, Jonathan M Davis wrote: Clearly, you haven't read TDPL recently enough. ;) There is a free function, opEquals, in object.d which gets called for classes, and _it_ is what == gets translated to for classes, and it calls the member function version of opEquals on classes:

Re: spawn X different workers & wait for results from all of them

2015-09-05 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-09-04 17:32:48 +, Justin Whear said: How would receive know? Well, it could be pretty simple. At the moment: receive( int ..., long ..., myStruct ... ) Will wait for one out of the three. So it's an OR. reveive_all( int ..., long ...,

Interfacing Chromium & SQLite

2015-09-05 Thread Mike McKee via Digitalmars-d-learn
On a Mac (Yosemite version), how would I create a window in D, embed Chromium, use D to show a local SQLite test database (id, firstname, lastname) inside Chromium, and let someone have a small search form to do like a "full name" search that goes back to D to query the database again?

Re: Current state of GUI's

2015-09-05 Thread motaito via Digitalmars-d
On Friday, 4 September 2015 at 14:47:47 UTC, Jacob Carlborg wrote: On 2015-09-04 15:23, motaito wrote: BSD is certainly the most difficult to find a solution. I tried compiling DWT on PC-BSD and it compile just if I remove one check for Linux. Although it doesn't link because I haven't

[Issue 15009] Object.destroy calls unnecessary postblits for destruction of static arrays object

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

[Issue 15009] Object.destroy calls unnecessary postblits for destruction of static arrays object

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15009 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/5be4156ccba77b49c7232060bbecb8b2527a8287 fix Issue 15009 -

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread Jonathan M Davis via Digitalmars-d
On Friday, 4 September 2015 at 22:36:01 UTC, bitwise wrote: On Friday, 4 September 2015 at 14:40:43 UTC, Jonathan M Davis wrote: On Friday, 4 September 2015 at 00:05:06 UTC, bitwise wrote: Thoughts? std.stream is on the chopping block and has been for years, and it was decided at dconf that

Re: Behavior of opEquals

2015-09-05 Thread Jonathan M Davis via Digitalmars-d
On Friday, 4 September 2015 at 20:39:14 UTC, Timon Gehr wrote: On 09/04/2015 09:21 PM, H. S. Teoh via Digitalmars-d wrote: Wait, wait, did I miss something? Since when was operator overloading allowed as free functions? Since UFCS, but DMD does not implement it. There is nothing in the

Re: Superfluous code in switch statement

2015-09-05 Thread Paul via Digitalmars-d-learn
On Friday, 4 September 2015 at 21:20:11 UTC, Timon Gehr wrote: On 09/04/2015 11:12 PM, anonymous wrote: On Friday 04 September 2015 23:04, Timon Gehr wrote: DMD never warns about dead code. It warns here: import std.stdio; void main() { return; writeln("hi"); /* Warning:

[Issue 15015] New: Win64: interop with C/C++ fails if function return value is a struct of size 8

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15015 Issue ID: 15015 Summary: Win64: interop with C/C++ fails if function return value is a struct of size 8 Product: D Version: D2 Hardware: x86_64 OS: Windows

Re: Behavior of opEquals

2015-09-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-05 08:18, Jonathan M Davis wrote: There is nothing in the spec about supporting operator overloading with free functions, so I don't know where you get the idea that it's even intended to be a feature. UFCS applies to functions which use the member function call syntax, and operators

Re: dmd codegen improvements

2015-09-05 Thread Dmitry Olshansky via Digitalmars-d
On 18-Aug-2015 13:45, Walter Bright wrote: Martin ran some benchmarks recently that showed that ddmd compiled with dmd was about 30% slower than when compiled with gdc/ldc. This seems to be fairly typical. I'm interested in ways to reduce that gap. .. 2. instruction selection patterns like

Re: Beta D 2.068.1-b2

2015-09-05 Thread BBasile via Digitalmars-d-announce
On Monday, 31 August 2015 at 13:15:57 UTC, BBasile wrote: On Monday, 31 August 2015 at 06:02:08 UTC, Martin Nowak wrote: [...] It looks like there is a regression in variant.d: I compile template without vibed and get: --- C:\Dev\dmd2\windows\bin\..\..\src\phobos\std\variant.d: Error:

[Issue 14951] Win64: Invalid C++ mangling for __gshared pointer variables

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14951 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED

Re: Interesting user mistake

2015-09-05 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 4 September 2015 at 23:08:21 UTC, Andrei Alexandrescu wrote: On 09/04/2015 12:39 PM, skoppe wrote: On Thursday, 3 September 2015 at 16:46:30 UTC, Andrei Alexandrescu wrote: http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang The

So what about -betterC flag?

2015-09-05 Thread Rel via Digitalmars-d
I remember that there was some buzz around undocumented -betterC compiler flag that should allow people get away from hard druntime dependencies and write bare metal code, drivers or kernel modules in some limited D subset. Could you make some comments about it. Does it exists and is it

Re: Containers

2015-09-05 Thread Russel Winder via Digitalmars-d
On Fri, 2015-09-04 at 22:21 +, bitwise via Digitalmars-d wrote: > […] > This is another problem: >"Containers do not form a class hierarchy, instead they > implement a common set of primitives (see table below). These > primitives each guarantee a specific worst case complexity and >

[Issue 14975] DMD refuses to inline even trivial struct constructors

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14975 --- Comment #6 from thomas.bock...@gmail.com --- I have tested, and PR #5033 does indeed fix this issue for me both in my simple test case, and also in the CheckedInt code where I originally discovered it. Thanks. --

[Issue 15014] New: Win64: Invalid C++ mangling for multiple long arguments

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15014 Issue ID: 15014 Summary: Win64: Invalid C++ mangling for multiple long arguments Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW

[Issue 15015] Win64: interop with C/C++ fails if function return value is a struct of size 8

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15015 Rainer Schuetze changed: What|Removed |Added Keywords||pull, wrong-code ---

Re: Interesting user mistake

2015-09-05 Thread ponce via Digitalmars-d
On Friday, 4 September 2015 at 18:55:03 UTC, Mint wrote: On Friday, 4 September 2015 at 17:17:26 UTC, Andrei A simple solution would be to just have unary + perform integer promotion, as it does in C. Wait, what? Is this another secret difference from C integer promotion rules?

static array is no range?

2015-09-05 Thread Sebastiaan Koppe via Digitalmars-d-learn
``` import std.algorithm; char[1024] buffer; buffer.find("LOCATION: "); // get error about how all the different versions of find don't match ``` ``` import std.algorithm; char[1024] buffer; buffer[0..$].find("LOCATION: "); // works as expected ``` Before trying the slice I manually

Re: Current state of GUI's

2015-09-05 Thread motaito via Digitalmars-d
On Friday, 4 September 2015 at 15:03:59 UTC, Chris wrote: I see what you mean. As far as I know, the libraries (PyD, LuaD etc.) would be in the static build of the executable, so you wouldn't have to "distribute" them, only Python or Lua. But that's no problem either, just include

Re: Containers

2015-09-05 Thread bitwise via Digitalmars-d
On Saturday, 5 September 2015 at 06:44:30 UTC, Dmitry Olshansky wrote: On 05-Sep-2015 05:36, bitwise wrote: On Friday, 4 September 2015 at 23:15:54 UTC, Andrei Alexandrescu wrote: [...] I feel should add that I still very much favor simple value type containers. C++ does just fine with

Re: Containers

2015-09-05 Thread bitwise via Digitalmars-d
On Saturday, 5 September 2015 at 06:59:28 UTC, Russel Winder wrote: On Fri, 2015-09-04 at 22:21 +, bitwise via Digitalmars-d wrote: This is another problem: --->FROM THE D DOCS "Containers do not form a class hierarchy, instead they implement a common set of primitives (see table

Re: reading file byLine

2015-09-05 Thread Namal via Digitalmars-d-learn
On Saturday, 5 September 2015 at 18:57:52 UTC, deed wrote: On Saturday, 5 September 2015 at 17:31:39 UTC, Namal wrote: Yeah, I have have been trying this example from wiki books https://en.wikibooks.org/wiki/Learning_D_With_Project_Euler It is not even compiling. What exactly is not

Re: dmd codegen improvements

2015-09-05 Thread Walter Bright via Digitalmars-d
On 9/5/2015 5:54 AM, Adam D. Ruppe wrote: On Saturday, 5 September 2015 at 08:15:06 UTC, Walter Bright wrote: And your post did it too. If you're using the Thunderbird news reader, typing Cntl-U will show the full source of the message. This is perfectly normal for emails and such. They are

Re: reading file byLine

2015-09-05 Thread deed via Digitalmars-d-learn
On Saturday, 5 September 2015 at 17:31:39 UTC, Namal wrote: Yeah, I have have been trying this example from wiki books https://en.wikibooks.org/wiki/Learning_D_With_Project_Euler It is not even compiling. What exactly is not compiling?

Re: Plot library wanted

2015-09-05 Thread dan via Digitalmars-d
On Monday, 27 January 2014 at 12:46:43 UTC, terchestor wrote: ((snipped)) Does anyone using PLplot can tell if it's worth using it or is there any alternative? Well, this thread is a 1.5 years old but i was looking around for info on plplot also, and it is possible to use it with d, at

Re: Windows Resources

2015-09-05 Thread BBasile via Digitalmars-d-learn
On Saturday, 5 September 2015 at 19:06:15 UTC, Prudence wrote: [...] Check this file https://github.com/D-Programming-Language/dmd/blob/master/samples/winsamp.d ,it's distributed with your D setup.

Re: So what about -betterC flag?

2015-09-05 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 5 September 2015 at 12:56:48 UTC, Adam D. Ruppe wrote: On Saturday, 5 September 2015 at 10:51:23 UTC, Rel wrote: I remember that there was some buzz around undocumented -betterC compiler flag that should allow people get away from hard druntime dependencies and write bare metal

Re: Error reporting is terrible

2015-09-05 Thread Idan Arye via Digitalmars-d
On Friday, 4 September 2015 at 03:26:50 UTC, David DeWitt wrote: On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote: [...] I think D is about as easy to install as anything. But then again I dont use Windows so I dont have 99.9% of the hassles that come along with that. Since

Create a delegate function

2015-09-05 Thread Prudence via Digitalmars-d-learn
I have code setup in such a way that I call a user defined function, e.g., void myFunc(Data d) { } myFunc has to be passed to the main code using something like void SetFunc(void function(Data) func) { ... func(myData); } What I would like to do is, instead of having to pass data to

Re: 1st Ever Artificial Consciousness to be Written in D Language

2015-09-05 Thread H. S. Teoh via Digitalmars-d-announce
On Sat, Sep 05, 2015 at 03:17:40PM +, Paul via Digitalmars-d-announce wrote: > On Wednesday, 2 September 2015 at 14:41:20 UTC, GrandAxe wrote: > > >D Language was chosen for its versatility. It is a language with high > >level syntax and low capabilities > > > Er, low capabilities???

Windows Resources

2015-09-05 Thread Prudence via Digitalmars-d-learn
I'm trying to create a win32 window. I coped the code pretty much directly from msdn: MSG msg; BOOL bRet; WNDCLASS wc; // Register the window class for the main window. if (!hPrevInstance) {

Re: FancyPars

2015-09-05 Thread Stefan Koch via Digitalmars-d-announce
On Thursday, 2 July 2015 at 14:25:09 UTC, Stefan Koch wrote: I cannot continue working on it anymore. Nontheless an unexpected update that makes FancyPars more Feature-complete than than Pegged. I addded simplistic Left Recursion handling... but the code is a mess :(

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread bitwise via Digitalmars-d
On Saturday, 5 September 2015 at 06:15:17 UTC, Jonathan M Davis wrote: On Friday, 4 September 2015 at 22:36:01 UTC, bitwise wrote: On Friday, 4 September 2015 at 14:40:43 UTC, Jonathan M Davis wrote: [...] Wow...this is surprising. At first glance, the streams seemed to be fairly well done.

Re: reading file byLine

2015-09-05 Thread Namal via Digitalmars-d-learn
On Saturday, 5 September 2015 at 14:49:13 UTC, deed wrote: On Saturday, 5 September 2015 at 14:44:19 UTC, deed wrote: .map!(s => chomp(s, "\"") .map!(s => chompPrefix(s, "\"") should be .map!(s => chomp(s, "\"")) .map!(s => chompPrefix(s, "\"")) Yeah, I have have been trying this

Re: Current state of GUI's

2015-09-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-05 13:41, motaito wrote: Glad to see someone giving an effort for BSD. It would be awesome to have more developers keeping it in mind. It links now when I manged to install all the dependencies, but it doesn't run :(. Segfaults for some reason, I haven't looked in to it. --

Re: Error reporting is terrible

2015-09-05 Thread deadalnix via Digitalmars-d
On Saturday, 5 September 2015 at 15:55:00 UTC, Idan Arye wrote: On Friday, 4 September 2015 at 03:26:50 UTC, David DeWitt wrote: On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote: [...] I think D is about as easy to install as anything. But then again I dont use Windows so I

Re: dmd codegen improvements

2015-09-05 Thread via Digitalmars-d
On Friday, 4 September 2015 at 14:25:11 UTC, rsw0x wrote: I believe the FOSS version of Intellij can install the Javascript plugin which also adds support for Typescript. May be wrong. Hm. I bought WebStorm to do Dart, but have kinda put Dart on hold, so maybe not a bad idea. I assume it

[Issue 15017] 2.068.1-b2 regression: assigning a Variant to be value in a hashmap

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15017 --- Comment #2 from Dylan Knutson --- Reduced variant.d ``` template maxSize(T...) { enum maxSize = T[0].sizeof; } struct VariantN(size_t maxDataSize, AllowedTypesParam...) { // Allow assignment from another

[Issue 15018] New: Win64: ICE when assigning struct of size 4 to slice

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15018 Issue ID: 15018 Summary: Win64: ICE when assigning struct of size 4 to slice Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: major

[Issue 14755] Could -profile=gc also give the number of allocations that led to X bytes being allocated?

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14755 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/01293e38d6d733137cbf633d6c46bcdc9f07b2d4 fix Issue 14755 -

Re: dmd codegen improvements

2015-09-05 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 5 September 2015 at 08:15:06 UTC, Walter Bright wrote: And your post did it too. If you're using the Thunderbird news reader, typing Cntl-U will show the full source of the message. This is perfectly normal for emails and such. They are multipart/alternative MIME messages which

[Issue 14755] Could -profile=gc also give the number of allocations that led to X bytes being allocated?

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

Re: So what about -betterC flag?

2015-09-05 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 5 September 2015 at 10:51:23 UTC, Rel wrote: I remember that there was some buzz around undocumented -betterC compiler flag that should allow people get away from hard druntime dependencies and write bare metal code, drivers or kernel modules in some limited D subset. -betterC

Re: Interfacing Chromium & SQLite

2015-09-05 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 5 September 2015 at 13:32:04 UTC, Mike McKee wrote: Note: I'm not asking for source code examples, just wondering what technologies I would have to use to connect these pieces together? I would basically look up how you'd do it in C and follow the same steps in D. I haven't used

Re: reading file byLine

2015-09-05 Thread deed via Digitalmars-d-learn
On Saturday, 5 September 2015 at 12:41:37 UTC, Namal wrote: Thx guys. Now I try out the split function. I read the file as a single string? auto arr = split(cast(string)read(filename),","); where the file has "A", "B", "C" and I get the output ["\"A\"", " \"B\"", " \"C\"\n"] I can

Re: spawn X different workers & wait for results from all of them

2015-09-05 Thread thedeemon via Digitalmars-d-learn
On Thursday, 3 September 2015 at 16:50:21 UTC, Robert M. Münch wrote: Hi, I'm not sure how to best implement the following: 1. I have 4 different tasks to do. 2. All can run in parallel 3. Every task will return some result that I need Now how to best do it? I think the Task and taskPool

Re: Interesting user mistake

2015-09-05 Thread Mint via Digitalmars-d
On Saturday, 5 September 2015 at 10:45:35 UTC, ponce wrote: On Friday, 4 September 2015 at 18:55:03 UTC, Mint wrote: On Friday, 4 September 2015 at 17:17:26 UTC, Andrei A simple solution would be to just have unary + perform integer promotion, as it does in C. Wait, what? Is this another

[Issue 15018] Win64: ICE when assigning struct of size 4 to slice

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15018 Rainer Schuetze changed: What|Removed |Added Keywords||ice-on-valid-code ---

[Issue 15017] 2.068.1-b2 regression: assigning a Variant to be value in a hashmap

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15017 Dylan Knutson changed: What|Removed |Added Component|phobos |dmd --

Re: 1st Ever Artificial Consciousness to be Written in D Language

2015-09-05 Thread Paul via Digitalmars-d-announce
On Wednesday, 2 September 2015 at 14:41:20 UTC, GrandAxe wrote: D Language was chosen for its versatility. It is a language with high level syntax and low capabilities Er, low capabilities???

[Issue 15017] 2.068.1-b2 regression: assigning a Variant to be value in a hashmap

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15017 Dylan Knutson changed: What|Removed |Added Severity|enhancement |regression --

[Issue 15017] 2.068.1-b2 regression: assigning a Variant to be value in a hashmap

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15017 --- Comment #1 from Dylan Knutson --- Failure error from DMD: ``` /Users/dymk/Downloads/dmd2/osx/bin/../../src/phobos/std/variant.d: Error: function std.variant.VariantN!32LU.VariantN.__xopEquals errors compiling the function

Re: D-Day for DMD is today!

2015-09-05 Thread via Digitalmars-d-announce
On Friday, 4 September 2015 at 12:38:41 UTC, Daniel Murphy wrote: expanding what's acceptable. For example, DMD now uses foreach and delegates in a few places, and I expect we'll see a lot of use of D strings in the near future. But you are going to do high level refactoring too, right? Not

Re: spawn X different workers & wait for results from all of them

2015-09-05 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-09-05 15:44:02 +, thedeemon said: I think the Task and taskPool from std.parallelism are a good fit. Something like: auto task1 = task!fun1(params1); auto task2 = task!fun2(params2); auto task3 = task!fun3(params3); auto task4 = task!fun4(params4); taskPool.put(task1);

Re: reading file byLine

2015-09-05 Thread Namal via Digitalmars-d-learn
On Friday, 4 September 2015 at 12:09:19 UTC, Edwin van Leeuwen wrote: On Friday, 4 September 2015 at 12:06:08 UTC, Edwin van Leeuwen wrote: On Friday, 4 September 2015 at 11:50:23 UTC, deed wrote: import std.algorithm, std.range, std.array, std.string, std.stdio, std.conv; int[] arr1 = [1,

Re: reading file byLine

2015-09-05 Thread deed via Digitalmars-d-learn
On Saturday, 5 September 2015 at 14:44:19 UTC, deed wrote: .map!(s => chomp(s, "\"") .map!(s => chompPrefix(s, "\"") should be .map!(s => chomp(s, "\"")) .map!(s => chompPrefix(s, "\""))

Re: Beta D 2.068.1-b2

2015-09-05 Thread Dylan Knutson via Digitalmars-d-announce
On Saturday, 5 September 2015 at 11:30:20 UTC, BBasile wrote: On Monday, 31 August 2015 at 13:15:57 UTC, BBasile wrote: waiting feedback: https://github.com/dymk/temple/issues/31 this error message is so strange. Maybe the author is not very reachable now so you might also want to try to

Re: Windows Resources

2015-09-05 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 5 September 2015 at 19:06:15 UTC, Prudence wrote: That's about as far as I can get. (what resource data? Where I do put it? How, who, when?) Resource data in Windows is data compiled into your exe. It is stuff like icons, menus, or other arbitrary stuff you attach. However, the

Re: static array is no range?

2015-09-05 Thread cym13 via Digitalmars-d-learn
On Saturday, 5 September 2015 at 11:12:17 UTC, Sebastiaan Koppe wrote: ``` import std.algorithm; char[1024] buffer; buffer.find("LOCATION: "); // get error about how all the different versions of find don't match ``` ``` import std.algorithm; char[1024] buffer; buffer[0..$].find("LOCATION:

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #54 from Martin Nowak --- *** Issue 12572 has been marked as a duplicate of this issue. *** --

[Issue 12572] pragma(lib, "curl") and -Lcurl broken

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12572 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED CC|

Can we have strcu with destructor have postblit disabled if none is provided ?

2015-09-05 Thread deadalnix via Digitalmars-d
I find myself reproducing the same pattern again and again, where I need to disable postblit on struct that have a sdestructor. It doesn't make any sense and it is error prone. If the struct is copied, then the destructor is going to run twice and free the same resource twice, which is

Re: Plot library wanted

2015-09-05 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 5 September 2015 at 19:38:46 UTC, dan wrote: On Monday, 27 January 2014 at 12:46:43 UTC, terchestor wrote: ((snipped)) Does anyone using PLplot can tell if it's worth using it or is there any alternative? Well, this thread is a 1.5 years old but i was looking around for info on

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread BBasile via Digitalmars-d
On Saturday, 5 September 2015 at 19:59:03 UTC, bitwise wrote: On Saturday, 5 September 2015 at 06:15:17 UTC, Jonathan M Davis wrote: On Friday, 4 September 2015 at 22:36:01 UTC, bitwise wrote: On Friday, 4 September 2015 at 14:40:43 UTC, Jonathan M Davis wrote: [...] Wow...this is

Re: Current state of GUI's

2015-09-05 Thread Rikki Cattermole via Digitalmars-d
On 06/09/15 11:43 AM, motaito wrote: On Saturday, 5 September 2015 at 19:13:12 UTC, Jacob Carlborg wrote: It links now when I manged to install all the dependencies, but it doesn't run :(. Segfaults for some reason, I haven't looked in to it. Bummer... However, I appreciate that you are

Re: Windows Resources

2015-09-05 Thread Rikki Cattermole via Digitalmars-d-learn
This may interest you: https://github.com/Devisualization/window/blob/master/platforms/win32/devisualization/window/window.d

Re: Current state of GUI's

2015-09-05 Thread motaito via Digitalmars-d
On Saturday, 5 September 2015 at 19:13:12 UTC, Jacob Carlborg wrote: It links now when I manged to install all the dependencies, but it doesn't run :(. Segfaults for some reason, I haven't looked in to it. Bummer... However, I appreciate that you are giving it a shot! But you see my point.

Re: dmd codegen improvements

2015-09-05 Thread Walter Bright via Digitalmars-d
On 9/5/2015 4:32 PM, Manu via Digitalmars-d wrote: Perhaps the NG server should make an effort to trim the wanted message content then? I'd rather work with NNTP as it is. I'm still astonished I'm the only one that uses Gmail... this should be a rampant problem. It probably is a rampant

Re: Windows Resources

2015-09-05 Thread Prudence via Digitalmars-d-learn
On Sunday, 6 September 2015 at 00:29:13 UTC, Adam D. Ruppe wrote: On Saturday, 5 September 2015 at 19:06:15 UTC, Prudence wrote: That's about as far as I can get. (what resource data? Where I do put it? How, who, when?) Resource data in Windows is data compiled into your exe. It is stuff

Re: D-Day for DMD is today!

2015-09-05 Thread Daniel Murphy via Digitalmars-d-announce
On 6/09/2015 2:47 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= wrote: But you are going to do high level refactoring too, right? Not just local conversions into foreachs and the like? Of course. Some of this was been started before the conversion.

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread BBasile via Digitalmars-d
On Sunday, 6 September 2015 at 02:19:41 UTC, bitwise wrote: On Saturday, 5 September 2015 at 23:00:43 UTC, BBasile wrote: On Saturday, 5 September 2015 at 19:59:03 UTC, bitwise wrote: On Saturday, 5 September 2015 at 06:15:17 UTC, Jonathan M Davis wrote: [...] Thanks for the explanation,

[Issue 15012] Druntime Makefile whitelists compilers

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15012 --- Comment #1 from Martin Nowak --- This is the same as in the phobos makefile, so it's kind of surprising that you only have an issue with druntime.

Re: dmd codegen improvements

2015-09-05 Thread Manu via Digitalmars-d
On 6 September 2015 at 07:20, Walter Bright via Digitalmars-d wrote: > On 9/5/2015 5:54 AM, Adam D. Ruppe wrote: >> >> On Saturday, 5 September 2015 at 08:15:06 UTC, Walter Bright wrote: >>> >>> And your post did it too. >>> >>> If you're using the Thunderbird news

Re: static array is no range?

2015-09-05 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Sunday, 6 September 2015 at 00:25:10 UTC, cym13 wrote: Yes, static arrays aren't ranges. The main reason is that static arrays are value type (ie: you copy them arround when passing them to functions which usually has a huge cost) where ranges are reference type (no copy, lighter, not

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread bitwise via Digitalmars-d
On Saturday, 5 September 2015 at 23:00:43 UTC, BBasile wrote: On Saturday, 5 September 2015 at 19:59:03 UTC, bitwise wrote: On Saturday, 5 September 2015 at 06:15:17 UTC, Jonathan M Davis wrote: [...] Thanks for the explanation, but could you give an example of how Stream would be

[Issue 14597] TraceHandler should be @nogc

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14597 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14119] Must not allocate TraceInfo for FinalizeErrors

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14119 --- Comment #3 from Martin Nowak --- *** Issue 14597 has been marked as a duplicate of this issue. *** --

[Issue 14993] Allocating in a destructor segfaults instead of throwing InvalidMemoryOperationError

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

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread bitwise via Digitalmars-d
On Sunday, 6 September 2015 at 03:42:20 UTC, BBasile wrote: [...] auto rng = StreamRange!(MemoryStream,long)(instance); auto rng = StreamRange!(FileStream,float)(instance); --- Actually I have nothing against your helper functions (except that they don't make Streams compatible with

Re: Create a delegate function

2015-09-05 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 5 September 2015 at 18:00:53 UTC, Prudence wrote: I have code setup in such a way that I call a user defined function, e.g., void myFunc(Data d) { } myFunc has to be passed to the main code using something like You can do that if and only if the this is the last argument

Re: Create a delegate function

2015-09-05 Thread BBasile via Digitalmars-d-learn
On Saturday, 5 September 2015 at 18:00:53 UTC, Prudence wrote: I have code setup in such a way that I call a user defined function, e.g., void myFunc(Data d) { } myFunc has to be passed to the main code using something like void SetFunc(void function(Data) func) { ... func(myData); }

Re: D-Day for DMD is today!

2015-09-05 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-09-05 18:47, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= wrote: But you are going to do high level refactoring too, right? Not just local conversions into foreachs and the like? I'm pretty sure the conversion tool already converted at least some loops