Where can get the strsafe.d by strsafe.h ? Thanks.

2018-02-24 Thread FrankLike via Digitalmars-d-learn
Hi,everyone, Now,I use some code in strsafe.h,but where can get the strsafe.d ? Thanks.

Re: Postgres and other database interfaces

2018-02-24 Thread bachmeier via Digitalmars-d
On Saturday, 24 February 2018 at 14:54:21 UTC, Martin Tschierschke wrote: I would even go so far 'force' people publishing to dub, to provide documentation. If no docs, present, than the libs should be marked as *docs missing*. (Beside the number of Github stars) If there's no

Re: Postgres and other database interfaces

2018-02-24 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 24 February 2018 at 14:13:18 UTC, Joe wrote: Again, coming from Python, I'm familiar with RTD So I actually just made this extension to my dpldocs website: http://ddb.dpldocs.info/ddb.postgres.html You can try going to http://any-dub-package.dpldocs.info and it will try to

Re: Postgres and other database interfaces

2018-02-24 Thread Paolo Invernizzi via Digitalmars-d
On Saturday, 24 February 2018 at 15:32:32 UTC, Adam D. Ruppe wrote: On Saturday, 24 February 2018 at 14:13:18 UTC, Joe wrote: Again, coming from Python, I'm familiar with RTD So I actually just made this extension to my dpldocs website: http://ddb.dpldocs.info/ddb.postgres.html You can try

Re: Postgres and other database interfaces

2018-02-24 Thread Martin Tschierschke via Digitalmars-d
On Saturday, 24 February 2018 at 14:13:18 UTC, Joe wrote: On Saturday, 24 February 2018 at 10:13:35 UTC, Paolo Invernizzi [...] As I said, I'm new and still not familiar with those facilities although I saw those things and they looked like embedded HTML and was wondering what they were

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 hst...@quickfur.ath.cx changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Issue 18517] New: Import order is not invariant

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18517 Issue ID: 18517 Summary: Import order is not invariant Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1

Re: PackedAliasSeq?

2018-02-24 Thread John Colvin via Digitalmars-d
On Thursday, 22 February 2018 at 19:26:54 UTC, Andrei Alexandrescu wrote: After coding https://github.com/dlang/phobos/pull/6192 with AliasSeq, the experience has been quite pleasurable. However, in places the AliasSeq tends to expand too eagerly, leading to a need to "keep it together" e.g.

Re: Postgres and other database interfaces

2018-02-24 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 24 February 2018 at 15:44:49 UTC, Paolo Invernizzi wrote: :-O Adam, you are the man! worship me! So I'm gonna tell you guys a dirty little secret: I intend to take the documentation throne by means of subterfuge. I've been generating docs for popular packages already but it

Re: countUntil to print all the index of a given string.

2018-02-24 Thread Vino via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 08:50:27 UTC, Jonathan M Davis wrote: On Tuesday, February 20, 2018 08:44:37 aberba via Digitalmars-d-learn wrote: On Sunday, 18 February 2018 at 15:23:14 UTC, Cym13 wrote: > On Sunday, 18 February 2018 at 14:48:59 UTC, Cym13 wrote: >> [...] > > Just thought of a

Re: Postgres and other database interfaces

2018-02-24 Thread Martin Tschierschke via Digitalmars-d
On Saturday, 24 February 2018 at 15:44:49 UTC, Paolo Invernizzi wrote: On Saturday, 24 February 2018 at 15:32:32 UTC, Adam D. Ruppe wrote: On Saturday, 24 February 2018 at 14:13:18 UTC, Joe wrote: [...] You can try going to http://any-dub-package.dpldocs.info [...] :-O Adam, you are the

Re: Postgres and other database interfaces

2018-02-24 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 24 February 2018 at 16:41:09 UTC, Martin Tschierschke wrote: Please make a post to announce and place the direct link to it inside code.dlang.org :-) Well, I forgot to log errors on the server so I see a few generation failures and I'm not sure if it is because the code is

Re: Postgres and other database interfaces

2018-02-24 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 24 February 2018 at 05:33:56 UTC, Joe wrote: The main issue is that, other than derelict-pq, using any of these libraries involves reading the library code and understanding the sui generis interfaces implemented by each. So often in threads like this I chime in to point out my

Re: Postgres and other database interfaces

2018-02-24 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 24 February 2018 at 16:42:26 UTC, Adam D. Ruppe wrote: source viewer This now works: http://dpq.dpldocs.info/source/dpq.query.d.html#L29 the "see implementation" links lead to pages like that. You'll notice in the source view that many names are links. You can click on them to

Re: Postgres and other database interfaces

2018-02-24 Thread Joe via Digitalmars-d
On Saturday, 24 February 2018 at 15:44:49 UTC, Paolo Invernizzi wrote: Joe: I think this is also a terrific 'welcome aboard' about how fast and quickly things can be done in D! I'm a bit overwhelmed by all the replies and "goodies" but I'd like to say thanks to Adam while I digest it all.

[Issue 18518] New: use stable names for multilib object files (to enable incremental update of archives)

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18518 Issue ID: 18518 Summary: use stable names for multilib object files (to enable incremental update of archives) Product: D Version: D2 Hardware: All OS: All

Re: How do you get comfortable with Dlang.org's Forum?

2018-02-24 Thread Steven Schveighoffer via Digitalmars-d
On 2/24/18 1:18 AM, Nick Sabalausky (Abscissa) wrote: On 02/23/2018 10:18 AM, Steven Schveighoffer wrote: TB has these, though I prefer plain text. It supports a crude form of markdown, so *bold*, _underline_ all are enhanced by TB. Emoticons turn into graphics too ;) I turned those off

Re: Postgres and other database interfaces

2018-02-24 Thread Denis F via Digitalmars-d
On Saturday, 24 February 2018 at 05:33:56 UTC, Joe wrote: 2. dpq2. Second most downloaded and built on top of derelict-pq. The "documentation" consists of a README listing the features and a single example, which appears to focus on support for JSON/BSON. Hi! Here is dpq2 and

Re: How do you get comfortable with Dlang.org's Forum?

2018-02-24 Thread Steven Schveighoffer via Digitalmars-d
On 2/24/18 7:00 AM, Patrick Schluter wrote: On Saturday, 24 February 2018 at 04:41:44 UTC, H. S. Teoh wrote: On Sat, Feb 24, 2018 at 04:18:29AM +, MattCoder via Digitalmars-d wrote: On Friday, 23 February 2018 at 13:47:16 UTC, biocyberman wrote: > 1. No post editing... You should be

[Issue 1839] Give D a modern varargs system that allows forwarding

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1839 Martin Nowak changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

[Issue 13855] Allow multiple selective imports from different modules in a single import statement

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13855 Steven Schveighoffer changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Postgres and other database interfaces

2018-02-24 Thread Denis F via Digitalmars-d
On Saturday, 24 February 2018 at 05:45:45 UTC, rikki cattermole wrote: There is plenty of desire to build a generalized SQL interface for Phobos. But somebody needs to do it and it won't be all that much fun to do. I want to dwell on this. It seems to me that this is a common misconception

Re: Postgres and other database interfaces

2018-02-24 Thread Denis F via Digitalmars-d
On Saturday, 24 February 2018 at 18:56:23 UTC, Denis F wrote: Postgres quarantiees that result of query will be immutable libpq, of course, not Postgres itself.

Re: How to split a string to a 2D array

2018-02-24 Thread Domain via Digitalmars-d-learn
On Saturday, 24 February 2018 at 08:59:46 UTC, Domain wrote: On Saturday, 24 February 2018 at 07:51:27 UTC, Domain wrote: [...] And why this not compile: rows.each!(a => data ~= a.split(",").map!(b => b.strip).padRight("", 2)); Error: cannot deduce function from argument types

Re: Postgres and other database interfaces

2018-02-24 Thread aberba via Digitalmars-d
On Saturday, 24 February 2018 at 08:32:38 UTC, Paolo Invernizzi wrote: On Saturday, 24 February 2018 at 07:57:47 UTC, aberba wrote: On Saturday, 24 February 2018 at 05:33:56 UTC, Joe wrote: 4. ddb. About the same number of downloads as the above. Implemented on top of front/backend protocol.

Re: Postgres and other database interfaces

2018-02-24 Thread Paolo Invernizzi via Digitalmars-d
On Saturday, 24 February 2018 at 09:10:03 UTC, aberba wrote: On Saturday, 24 February 2018 at 08:32:38 UTC, Paolo Invernizzi wrote: On Saturday, 24 February 2018 at 07:57:47 UTC, aberba wrote: On Saturday, 24 February 2018 at 05:33:56 UTC, Joe wrote: 4. ddb. About the same number of

Re: Postgres and other database interfaces

2018-02-24 Thread Martin Tschierschke via Digitalmars-d
On Saturday, 24 February 2018 at 07:57:47 UTC, aberba wrote: On Saturday, 24 February 2018 at 05:33:56 UTC, Joe wrote: Back on 13 January, I posted in the Learn forum some questions regarding using Postgres and got a reply that stated the following: On Monday, 15 January 2018 at 02:28:29

[Issue 5570] 64 bit C ABI not followed for passing structs and complex numbers as function parameters

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5570 Walter Bright changed: What|Removed |Added Keywords||C++ --

Re: Postgres and other database interfaces

2018-02-24 Thread aberba via Digitalmars-d
On Saturday, 24 February 2018 at 05:33:56 UTC, Joe wrote: Back on 13 January, I posted in the Learn forum some questions regarding using Postgres and got a reply that stated the following: On Monday, 15 January 2018 at 02:28:29 UTC, Matthias Klumpp wrote: In any case, please don't start

Re: PackedAliasSeq?

2018-02-24 Thread Petar via Digitalmars-d
On Saturday, 24 February 2018 at 06:14:52 UTC, deadalnix wrote: On Thursday, 22 February 2018 at 19:26:54 UTC, Andrei Alexandrescu wrote: After coding https://github.com/dlang/phobos/pull/6192 with AliasSeq, the experience has been quite pleasurable. However, in places the AliasSeq tends to

Re: Postgres and other database interfaces

2018-02-24 Thread Paolo Invernizzi via Digitalmars-d
On Saturday, 24 February 2018 at 07:57:47 UTC, aberba wrote: On Saturday, 24 February 2018 at 05:33:56 UTC, Joe wrote: 4. ddb. About the same number of downloads as the above. Implemented on top of front/backend protocol. No documentation although repository has a folder with two sample

[Issue 18516] New: Add -vnrvo switch for showing user when nrv is done

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18516 Issue ID: 18516 Summary: Add -vnrvo switch for showing user when nrv is done Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: Double link list

2018-02-24 Thread TheFlyingFiddle via Digitalmars-d-learn
On Saturday, 24 February 2018 at 09:48:13 UTC, Joel wrote: I'm trying some code for practice, but it isn't working properly - it prints just one number when printing in reverse. I think the problem is here: void popFront() { head = head.next; if (head !is null) head.prev = null; } void

Re: Postgres and other database interfaces

2018-02-24 Thread Suliman via Digitalmars-d
On Saturday, 24 February 2018 at 06:05:38 UTC, Erik Smith wrote: On Saturday, 24 February 2018 at 05:45:45 UTC, rikki cattermole wrote: There is plenty of desire to build a generalized SQL interface for Phobos. But somebody needs to do it and it won't be all that much fun to do. Hi Joe and

[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 --- Comment #17 from Walter Bright --- On Linux x86, given the code: struct S { }; int test(S s, int a) { return a; } g++ produces: mov EAX,8[ESP] ret while clang++ produces: mov EAX,4[ESP] ret This

Re: Beta 2.079.0

2018-02-24 Thread Joakim via Digitalmars-d-announce
On Friday, 23 February 2018 at 11:57:05 UTC, Martin Nowak wrote: Furthermore there remain various ideas that would avoid the original ambiguity. Whether such changes are worthwhile is up for discussion and would benefit from someone taking the lead. I really like psychoRabbit's array syntax

[Issue 18515] freebsd 11 ships with gcc unable to link 32 bit binaries, dmd uses it by default

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18515 Jonathan M Davis changed: What|Removed |Added CC|

Re: How to split a string to a 2D array

2018-02-24 Thread Domain via Digitalmars-d-learn
On Saturday, 24 February 2018 at 07:51:27 UTC, Domain wrote: I want to convert a string like " a,b1, 23 " to a 2D array like: [["a", "b"], ["1", "2"], ["3", "" ]] auto html = " a,b1, 23 "; auto rows = html.strip.chomp("").split(""); string[][] data; rows.each!(a => data ~= a.split(","));

Re: Slow code, slow

2018-02-24 Thread Stefan Koch via Digitalmars-d
On Friday, 23 February 2018 at 20:15:12 UTC, H. S. Teoh wrote: Now that I got your attention: https://issues.dlang.org/show_bug.cgi?id=18511 tl;dr: A trivial piece of code, written as ostensibly "idiomatic D" with std.algorithm and std.range templates, compiles *an order of

Re: D for microservices

2018-02-24 Thread Joakim via Digitalmars-d
On Thursday, 22 February 2018 at 21:59:27 UTC, aberba wrote: On Thursday, 22 February 2018 at 08:54:04 UTC, Joakim wrote: On Monday, 23 October 2017 at 18:18:28 UTC, Jacob Carlborg wrote: [...] Yuxuan Shui has ported druntime to Musl over the last couple months:

[Issue 18505] delete deprecation message is misleading

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18505 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/db25160a7eeedb052cf6f2ed8de042cf129ebeeb Fix Issue 18505 - delete deprecation message is misleading

[Issue 18505] delete deprecation message is misleading

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

[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 Walter Bright changed: What|Removed |Added Keywords||C++ --

[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 --- Comment #15 from Walter Bright --- *** Issue 18514 has been marked as a duplicate of this issue. *** --

[Issue 18514] freebsd 11 with clang fails cpp abi tests

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18514 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 --- Comment #16 from Walter Bright --- With the upgrade to FreeBSD 11, this is now happening on 32 bit FreeBSD. --

Re: How do you get comfortable with Dlang.org's Forum?

2018-02-24 Thread Patrick Schluter via Digitalmars-d
On Friday, 23 February 2018 at 22:01:44 UTC, bachmeier wrote: On Friday, 23 February 2018 at 17:56:29 UTC, Biocyberman wrote: Speaking on behalf of myself, after additional inputs from many excellent and respectful users in this 'forum'. I can say that, on the scale of 1 (least geeky) to 10

[Issue 18515] freebsd 11 ships with gcc unable to link 32 bit binaries, dmd uses it by default

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18515 --- Comment #2 from Jonathan M Davis --- However, it does look like test/d_do_test.d hardcodes g++ if CC isn't set, so that fails if g++ isn't available. --

[Issue 18515] freebsd 11 ships with gcc unable to link 32 bit binaries, dmd uses it by default

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18515 Walter Bright changed: What|Removed |Added CC|

Double link list

2018-02-24 Thread Joel via Digitalmars-d-learn
I'm trying some code for practice, but it isn't working properly - it prints just one number when printing in reverse. ''' void main() { import std.stdio, std.algorithm, std.range, std.conv; struct List(T) { class Node { T value;

Re: NNTP client configuration

2018-02-24 Thread Walter Bright via Digitalmars-d
On 2/23/2018 5:20 AM, Steven Schveighoffer wrote: Hoping to go to Germany, but not sure if it's going to happen again :) How can anyone pass up Bavaria?!

Re: NNTP client configuration

2018-02-24 Thread Jonathan M Davis via Digitalmars-d
On Saturday, February 24, 2018 01:45:28 Walter Bright via Digitalmars-d wrote: > On 2/23/2018 5:20 AM, Steven Schveighoffer wrote: > > Hoping to go to Germany, but not sure if it's going to happen again :) > > How can anyone pass up Bavaria?! LOL. The cost of going to dconf when it's in Germany

[Issue 18515] freebsd 11 ships with gcc unable to link 32 bit binaries, dmd uses it by default

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18515 --- Comment #4 from Jonathan M Davis --- https://github.com/dlang/dmd/pull/7949 --

[Issue 18514] freebsd 11 with clang fails cpp abi tests

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18514 Walter Bright changed: What|Removed |Added Keywords||C++

Re: Anybody still using the chm docs

2018-02-24 Thread notna via Digitalmars-d
On Thursday, 16 June 2016 at 02:32:05 UTC, Jack Stouffer wrote: On Wednesday, 15 June 2016 at 10:58:04 UTC, Martin Nowak wrote: So I'm wondering if in 2016 someone really needs an offline copy of a website shipped with a binary release? For offline browsing, Windows and Linux users can use

Re: How to convert C macro to D? Thanks.

2018-02-24 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 24 February 2018 at 13:50:16 UTC, FrankLike wrote: #define IOCTL_NDIS_QUERY_GLOBAL_STATS _NDIS_CONTROL_CODE(0, METHOD_OUT_DIRECT) use alias or enum,how to do? neither. those are little functions. auto IOCTL_NDIS_QUERY_GLOBAL_STATS () { return _NDIS_CONTROL_CODE(0,

Re: How do you get comfortable with Dlang.org's Forum?

2018-02-24 Thread number via Digitalmars-d
On Friday, 23 February 2018 at 14:25:55 UTC, psychoticRabbit wrote: If there is one change that I would really like, it's dark theme I used to use Firefox Addon 'Colour That Site!' but its not available for current Firefox version. Today the built-in Reader Mode might just do it (click the

Re: How to convert C macro to D? Thanks.

2018-02-24 Thread FrankLike via Digitalmars-d-learn
On Saturday, 24 February 2018 at 13:57:27 UTC, Adam D. Ruppe wrote: On Saturday, 24 February 2018 at 13:50:16 UTC, FrankLike wrote: #define IOCTL_NDIS_QUERY_GLOBAL_STATS _NDIS_CONTROL_CODE(0, METHOD_OUT_DIRECT) auto IOCTL_NDIS_QUERY_GLOBAL_STATS () { return _NDIS_CONTROL_CODE(0,

[Issue 18492] DLang STL links are broken

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

[Issue 18114] [Reg 2.078] regex performance regression

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

[Issue 18114] [Reg 2.078] regex performance regression

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18114 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/59520969ef73eaf0691972ee00b389e5bbc4c8fb fix Issue 18114 - regex performance regression -

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a74271be4c93cf95905265597ac9bca426378f55 Revert "Issue 18244: std.math generic functions need to

[Issue 18341] Documentation for std.array.split is confusing/incorrect

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18341 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/1956daf34f8779779a1d393e1870e275a0619b2e Fix Issue 18341 - Documentation for std.array.split is

[Issue 18492] DLang STL links are broken

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18492 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/adf6113eb9f311acbd717d4c8b11c8f115892841 Fix Issue 18492 - DLang STL links are broken

[Issue 18468] cannot use `synchronized {}` in @safe code

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

[Issue 18468] cannot use `synchronized {}` in @safe code

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18468 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/8130ab0a5181e3a71442a7014ebc5159331a9d2e Fix Issue 18468 - cannot use `synchronized {}` in @safe code

[Issue 13855] Allow multiple selective imports from different modules in a single import statement

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13855 --- Comment #10 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/ddbdfb44379d4580d3ef0103834356f89d215566 Revert "fix Issue 13855 - multi-module selective import

Re: How to split a string to a 2D array

2018-02-24 Thread Seb via Digitalmars-d-learn
On Saturday, 24 February 2018 at 09:06:09 UTC, Domain wrote: On Saturday, 24 February 2018 at 08:59:46 UTC, Domain wrote: On Saturday, 24 February 2018 at 07:51:27 UTC, Domain wrote: [...] And why this not compile: rows.each!(a => data ~= a.split(",").map!(b => b.strip).padRight("", 2));

Re: Anybody still using the chm docs

2018-02-24 Thread Seb via Digitalmars-d
On Saturday, 24 February 2018 at 11:23:17 UTC, notna wrote: On Thursday, 16 June 2016 at 02:32:05 UTC, Jack Stouffer wrote: On Wednesday, 15 June 2016 at 10:58:04 UTC, Martin Nowak wrote: So I'm wondering if in 2016 someone really needs an offline copy of a website shipped with a binary

Re: d.godbolt.org now supports DMD

2018-02-24 Thread Martin Nowak via Digitalmars-d-announce
On Friday, 23 February 2018 at 18:11:58 UTC, Seb wrote: https://godbolt.org/g/EQCTNy [1] https://github.com/mattgodbolt/compiler-explorer/issues/306 Great news, bad code ;).

Re: Postgres and other database interfaces

2018-02-24 Thread Kagamin via Digitalmars-d
On Saturday, 24 February 2018 at 05:33:56 UTC, Joe wrote: 3. vibe-d-postgresql. Third most downloaded and built on top of dpq2. Docs consist of a single example program. If you write docs and examples, I'd expect vibe to accept them, but ask them anyway.

2.079.0-beta.2 [Re: Beta 2.079.0]

2018-02-24 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 19 February 2018 at 10:49:03 UTC, Martin Nowak wrote: http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.079.0.html Second beta is published now. The website build server has some issues, so the website update is still stuck for a while. You can see a changelog

[Issue 18509] [Beta 2.079] lld-link.exe needs msvcp140.dll

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18509 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED

Re: Postgres and other database interfaces

2018-02-24 Thread Joe via Digitalmars-d
On Saturday, 24 February 2018 at 10:13:35 UTC, Paolo Invernizzi wrote: Have you tried to generate the documentation? Look for example inside the source files... https://github.com/pszturmaj/ddb/blob/bd55beea0df6e5da86a71535ff6d9800c0711c7c/source/ddb/postgres.d#L2

Re: Double link list

2018-02-24 Thread ag0aep6g via Digitalmars-d-learn
On 02/24/2018 11:26 AM, TheFlyingFiddle wrote: On Saturday, 24 February 2018 at 09:48:13 UTC, Joel wrote: [...] void popFront() { head = head.next;  if (head !is null) head.prev = null; } void popBack() { tail = tail.prev; if (tail !is null) tail.next = null; } Head and tail will point to

Re: Anybody still using the chm docs

2018-02-24 Thread notna via Digitalmars-d
On Sunday, 18 February 2018 at 21:44:54 UTC, Jordi Sayol wrote: El 17/02/18 a les 22:19, Manu via Digitalmars-d ha escrit: I like the CHM docs. I have encountered the same maintenance problem before, where build infra is linux based, and the CHM docs need a windows machine to build... I

Re: How do you get comfortable with Dlang.org's Forum?

2018-02-24 Thread Patrick Schluter via Digitalmars-d
On Saturday, 24 February 2018 at 04:41:44 UTC, H. S. Teoh wrote: On Sat, Feb 24, 2018 at 04:18:29AM +, MattCoder via Digitalmars-d wrote: On Friday, 23 February 2018 at 13:47:16 UTC, biocyberman wrote: > 1. No post editing... You should be grateful for this, because I hate systems like:

Re: Double link list

2018-02-24 Thread Alex via Digitalmars-d-learn
On Saturday, 24 February 2018 at 09:48:13 UTC, Joel wrote: I'm trying some code for practice, but it isn't working properly - it prints just one number when printing in reverse. [...] the first writeln destroys the range via popFront, I think. As if you comment it out, the writeln with

How to convert C macro to D? Thanks.

2018-02-24 Thread FrankLike via Digitalmars-d-learn
Hi,everyone, I can convert some simple C macros, but a bit more complicated will need your help. For example: #define _NDIS_CONTROL_CODE(request,method) \ CTL_CODE(FILE_DEVICE_PHYSICAL_NETCARD, request, method, FILE_ANY_ACCESS) #define IOCTL_NDIS_QUERY_GLOBAL_STATS

Re: Vibe.d no more using static this() {}

2018-02-24 Thread bauss via Digitalmars-d-learn
On Friday, 23 February 2018 at 23:11:13 UTC, aberba wrote: I recently noticed vibe.d now using main loop which call the vibe.d event loop. Why that change? I can only assume it's because static constructors are a pain in the ass. https://dlang.org/spec/module.html#order_of_static_ctor

Re: Postgres and other database interfaces

2018-02-24 Thread Erik Smith via Digitalmars-d
On Saturday, 24 February 2018 at 18:56:23 UTC, Denis F wrote: On Saturday, 24 February 2018 at 05:45:45 UTC, rikki cattermole wrote: There is plenty of desire to build a generalized SQL interface for Phobos. But somebody needs to do it and it won't be all that much fun to do. I want to

short s, t; t = -s: no (longer) works: Deprecation: integral promotion not done for -s, use

2018-02-24 Thread kdevel via Digitalmars-d-learn
I don't get the point of the deprecation message: --- intprom.d import std.stdio; void main () { short s, t; t = -s; } --- $ dmd intprom.d intprom.d(6): Deprecation: integral promotion not done for -s, use '-transition=intpromote' switch or -cast(int)(s) What shall I do in order to

Re: Postgres and other database interfaces

2018-02-24 Thread Joe via Digitalmars-d
On Saturday, 24 February 2018 at 18:41:21 UTC, Denis F wrote: On Saturday, 24 February 2018 at 05:33:56 UTC, Joe wrote: 2. dpq2. Second most downloaded and built on top of derelict-pq. The "documentation" consists of a README listing the features and a single example, which appears to focus

Re: short s, t; t = -s: no (longer) works: Deprecation: integral promotion not done for -s, use

2018-02-24 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/24/18 3:07 PM, kdevel wrote: I don't get the point of the deprecation message: --- intprom.d import std.stdio; void main () {    short s, t;    t = -s; } --- https://dlang.org/changelog/2.078.0.html#fix16997 $ dmd intprom.d intprom.d(6): Deprecation: integral promotion not done for

Re: How do you get comfortable with Dlang.org's Forum?

2018-02-24 Thread Walter Bright via Digitalmars-d
On 2/23/2018 8:41 PM, H. S. Teoh wrote: +1. In the old days, it was called "bait and switch". After people reply to an initial post, edit it and change it into something else completely. It was one of the trolls' favorite tools. Yeah, the immutability of NNTP posts is a feature, not a bug. It

[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 --- Comment #18 from Walter Bright --- Temporary workaround --

[Issue 16243] wrong C++ argument passing with empty struct when interfacing with Clang

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 Walter Bright changed: What|Removed |Added Summary|wrong C++ argument passing |wrong C++ argument

Re: Postgres and other database interfaces

2018-02-24 Thread Joe via Digitalmars-d
On Saturday, 24 February 2018 at 18:56:23 UTC, Denis F wrote: It seems to me that this is a common misconception that it is possible to create a good universal tool for accessing the database in place of the many existing ones. I don't think what is needed a "good universal tool" but a good

Re: short s, t; t = -s: no (longer) works: Deprecation: integral promotion not done for -s, use

2018-02-24 Thread kdevel via Digitalmars-d-learn
On Saturday, 24 February 2018 at 20:17:12 UTC, Steven Schveighoffer wrote: On 2/24/18 3:07 PM, kdevel wrote: I don't get the point of the deprecation message: --- intprom.d import std.stdio; void main () {    short s, t;    t = -s; } --- https://dlang.org/changelog/2.078.0.html#fix16997

Re: How do you get comfortable with Dlang.org's Forum?

2018-02-24 Thread Patrick Schluter via Digitalmars-d
On Saturday, 24 February 2018 at 18:46:50 UTC, Steven Schveighoffer wrote: On 2/24/18 7:00 AM, Patrick Schluter wrote: On Saturday, 24 February 2018 at 04:41:44 UTC, H. S. Teoh wrote: [...] Last week I saw a video showing how a forum was shutdown because it was alledgedly full of racists.

[Issue 16243] wrong C++ argument passing with empty struct when interfacing with Clang

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 --- Comment #19 from Walter Bright --- (In reply to Walter Bright from comment #18) > Temporary workaround https://github.com/dlang/dmd/pull/7952 --

formattedRead string without allocation?

2018-02-24 Thread Steven Schveighoffer via Digitalmars-d-learn
I want to use formattedRead to enforce a certain format, and easily parse out the data from a string. But if I do: string s = "123:abc:123"; string y; assert(s.formattedRead!"123:%s:123"(y) == 1); y is now a newly-allocated string, not a slice of the input. In the case of parsing strings

[Issue 16243] wrong C++ argument passing with empty struct when interfacing with Clang

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 --- Comment #20 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/6966e6e0a9bf4ddf2760a46619e0c247ae8405ff Temporary workaround for Issue 16243

[Issue 5570] 64 bit C ABI not followed for passing structs and complex numbers as function parameters

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5570 Timothee Cour changed: What|Removed |Added CC|

[Issue 18515] freebsd 11 ships with gcc unable to link 32 bit binaries, dmd uses it by default

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18515 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/0527f4eef35b56afd67c65382a0e395d86db93f4 issue 18515: Fix it so that neither g++ nor CC is required.

[Issue 18515] freebsd 11 ships with gcc unable to link 32 bit binaries, dmd uses it by default

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18515 --- Comment #6 from Brad Roberts --- I wasn't thinking about this last night, but the behavior that's in question isn't master or stable branch, but rather 2.068.2. That compiler's behavior is where things are going wrong.

Re: Where can get the strsafe.d by strsafe.h ? Thanks.

2018-02-24 Thread bauss via Digitalmars-d-learn
On Saturday, 24 February 2018 at 14:58:52 UTC, FrankLike wrote: Hi,everyone, Now,I use some code in strsafe.h,but where can get the strsafe.d ? Thanks. Basically nowhere. strsafe.h is non-standard. What you have to do is create the binding yourself.

Re: Postgres and other database interfaces

2018-02-24 Thread bachmeier via Digitalmars-d
On Saturday, 24 February 2018 at 18:41:21 UTC, Denis F wrote: Hi! Here is dpq2 and vibe-d-postgresql developer. The problem is that I do not know English very well. So,I think it's better not to write any documentation than to write the wrong one. There are still some steps you can take:

Re: short s, t; t = -s: no (longer) works: Deprecation: integral promotion not done for -s, use

2018-02-24 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/24/18 4:42 PM, kdevel wrote: On Saturday, 24 February 2018 at 20:17:12 UTC, Steven Schveighoffer wrote: https://dlang.org/changelog/2.078.0.html#fix16997 My goodness! So there is currently no negation operator defined on short and some other types? No, that's not the case. It's simply

Aedi, v0.4.0 release

2018-02-24 Thread Alexandru Ermicioi via Digitalmars-d-announce
Hello everyone, There is new release of Aedi, a dependency injection framework v0.4.0. The new release contains changes below, of which the most notable is manual memory management for components using std.experimental.allocators. Changelog: - Added manual memory management mechanisms to

  1   2   >