[Issue 18260] ICE on template this parameter and alias this

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18260 --- Comment #4 from Simen Kjaeraas --- This seems flaky. The example in comment #3 compiles under 2.078.3, but the first example still causes DMD to freeze. --

[Issue 18432] alias x = x where x is an imported symbol should result in an error

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18432 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #5

[Issue 18432] alias x = x where x is an imported symbol should result in an error

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18432 --- Comment #4 from RazvanN --- PR : https://github.com/dlang/dmd/pull/7930 --

[Issue 18432] alias x = x where x is an imported symbol should result in an error

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18432 RazvanN changed: What|Removed |Added CC|

[Issue 18480] dmd 2.079 hangs

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

return type based on content of an array

2018-02-20 Thread thorstein via Digitalmars-d-learn
Hi, I'm going circles... ;) I read a string that contains an array of unknown dimension like: a = [1,2,3,4] or a = [[1,2],[3,4]] or a = [[[1,2],[3,4]],[[5,6],[7,8]]] With that I want to perform specified operations e.g. also provided on command line. Because at compile time the dimension

Re: NNTP client configuration

2018-02-20 Thread Manu via Digitalmars-d
On 20 February 2018 at 19:32, Walter Bright via Digitalmars-d wrote: > On 2/20/2018 6:00 PM, Manu wrote: >> >> I'm a bit tired of being a bad guy for unknowingly committing a crime >> by using my email client in the default and completely normal way ;) > > > We'll

Re: New abstraction: Layout

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, February 21, 2018 05:53:31 Basile B. via Digitalmars-d wrote: > On Saturday, 17 February 2018 at 00:04:16 UTC, Andrei > > Alexandrescu wrote: > > I've been long bothered that the builtin .tupleof and our own > > abstractions Fields and RepresentationTypeTuple in std.traits - > > all

Re: New abstraction: Layout

2018-02-20 Thread Basile B. via Digitalmars-d
On Saturday, 17 February 2018 at 00:04:16 UTC, Andrei Alexandrescu wrote: I've been long bothered that the builtin .tupleof and our own abstractions Fields and RepresentationTypeTuple in std.traits - all omit the essential information of field offsets. That makes types that use align() to have

Re: -libpath?

2018-02-20 Thread Mike Franklin via Digitalmars-d
On Tuesday, 6 February 2018 at 17:49:33 UTC, Jonathan Marler wrote: What do people think of adding an argument to DMD to add library search paths? Currently the only way I know how to do this would be via linker-specific flags, i.e. GCC: -L-L/usr/lib MSVC: -L-libpath:C:\mylibs OPTLINK:

Re: NNTP client configuration

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, February 20, 2018 19:51:54 Brad Roberts via Digitalmars-d wrote: > On 2/20/2018 7:43 PM, Jonathan M Davis via Digitalmars-d wrote: > > On Tuesday, February 20, 2018 19:20:27 Walter Bright via Digitalmars-d > > > > wrote: > >> On 2/20/2018 4:26 PM, Manu wrote: > >>> I shouldn't have

Re: New abstraction: Layout

2018-02-20 Thread Andrei Alexandrescu via Digitalmars-d
On 02/20/2018 07:34 AM, Steven Schveighoffer wrote: On 2/18/18 4:52 AM, Dmitry Olshansky wrote: On Saturday, 17 February 2018 at 19:37:12 UTC, Steven Schveighoffer wrote: On 2/17/18 9:59 AM, Andrei Alexandrescu wrote: On 02/17/2018 09:03 AM, Steven Schveighoffer wrote: I found this also

Re: NNTP client configuration

2018-02-20 Thread Brad Roberts via Digitalmars-d
On 2/20/2018 7:43 PM, Jonathan M Davis via Digitalmars-d wrote: On Tuesday, February 20, 2018 19:20:27 Walter Bright via Digitalmars-d wrote: On 2/20/2018 4:26 PM, Manu wrote: I shouldn't have your email address in the reply-to header (as Jonathan has noted multiple times). I do that

Re: NNTP client configuration

2018-02-20 Thread Brad Roberts via Digitalmars-d
On 2/20/2018 6:00 PM, Manu wrote: Hey Brad; is it possible to strip out the HTML copy from emails before distribution? I'm a bit tired of being a bad guy for unknowingly committing a crime by using my email client in the default and completely normal way ;) Yes, mailman can filter messages and

Re: NNTP client configuration

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, February 20, 2018 19:20:27 Walter Bright via Digitalmars-d wrote: > On 2/20/2018 4:26 PM, Manu wrote: > > I shouldn't have your email > > address in the reply-to header (as Jonathan has noted multiple times). > > I do that deliberately as a service to those who wish to contact me >

NWCPP (and D) Meeting at Microsoft Wednesday Evening

2018-02-20 Thread Walter Bright via Digitalmars-d-announce
http://nwcpp.org/ I plan to be there; a bunch of Seattle area D folks come regularly. We hear the presentation, then go out for a beer and conversation afterwards. Come join us! -Walter

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 5:09 PM, Brad Roberts wrote: Jonathan alerted me to the issue a couple days ago and I've been looking into this today.  It's due to a behavior change between versions of mailman used on the old (being a relative term.. been a few months now) mail server and the current mail

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 4:32 PM, Manu wrote: It's configurable... what seems to happen though, is that occasionally my setting resets. Perhaps google updates gmail and it resets some settings like that? I dunno. I don't notice when the setting resets, but Walter does. I notice because the Thunderbird

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 6:00 PM, Manu wrote: I'm a bit tired of being a bad guy for unknowingly committing a crime by using my email client in the default and completely normal way ;) We'll forgive you if you show up at DConf so I can buy you a good Bavarian beer!

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 4:26 PM, Manu wrote: I shouldn't have your email address in the reply-to header (as Jonathan has noted multiple times). I do that deliberately as a service to those who wish to contact me privately about something I posted, which happens now and then. I subscribe to the

Re: Throwing D exceptions through C++ call stack

2018-02-20 Thread Nicholas Wilson via Digitalmars-d
On Tuesday, 20 February 2018 at 21:31:03 UTC, Timothee Cour wrote: https://github.com/Syniurge/Calypso now allows catch C++ exceptions from D handlers (on OSX and linux at least) On Tue, Feb 20, 2018 at 1:04 PM, H. S. Teoh via Digitalmars-d wrote: I'm piecewise

[Issue 18464] fullyQualifiedName!ifloat and fullyQualifiedName!cfloat fail

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18464 --- Comment #2 from katemmo...@gmail.com --- (In reply to Seb from comment #1) > While not directly related to your issue, but are you aware that the i and c > variants are about to be deprecated? (they have been deprecated in 2012, but >

Re: Manually allocating a File

2018-02-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, February 21, 2018 02:59:21 Nicholas Wilson via Digitalmars-d- learn wrote: > On Tuesday, 20 February 2018 at 15:32:45 UTC, Chris M. wrote: > > Thanks for the info, that clears things up. Like I said, it was > > more experimentation rather than me planning to actually use > > it.

Re: Manually allocating a File

2018-02-20 Thread Nicholas Wilson via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 15:32:45 UTC, Chris M. wrote: Thanks for the info, that clears things up. Like I said, it was more experimentation rather than me planning to actually use it. Works now with the following modifications. import std.stdio; import core.stdc.stdlib; import

Re: -libpath?

2018-02-20 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 6 February 2018 at 17:49:33 UTC, Jonathan Marler wrote: What do people think of adding an argument to DMD to add library search paths? Currently the only way I know how to do this would be via linker-specific flags, i.e. GCC: -L-L/usr/lib MSVC: -L-libpath:C:\mylibs OPTLINK:

Re: Annotation of functions

2018-02-20 Thread psychoticRabbit via Digitalmars-d
On Tuesday, 20 February 2018 at 15:26:12 UTC, Adam D. Ruppe wrote: dmd -X spits out the json file with a list of functions and classes and other stuff. Then you can just filter that. 'dmd -X' looks like the perfect solution for my need. thanks.

Re: NNTP client configuration

2018-02-20 Thread Manu via Digitalmars-d
On 20 February 2018 at 17:09, Brad Roberts via Digitalmars-d wrote: > On 2/20/2018 4:53 PM, Seb via Digitalmars-d wrote: >> >> On Wednesday, 21 February 2018 at 00:32:54 UTC, Manu wrote: >>> >>> On 20 February 2018 at 02:05, Jonathan M Davis via Digitalmars-d >>>

Re: Annotation of functions

2018-02-20 Thread psychoticRabbit via Digitalmars-d
On Tuesday, 20 February 2018 at 13:40:16 UTC, bauss wrote: I should probably have put an example usage to show how it's used: This makes we want to go back and program in C again ;-) (but thanks for taking the time to demo/explain)

[Issue 18480] dmd 2.079 hangs

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18480 --- Comment #4 from Timothee Cour --- this should fix it: https://github.com/dlang/dmd/pull/7930 --

[Issue 18101] allow Tuple for BetterC

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18101 Mike Franklin changed: What|Removed |Added See Also|

[Issue 18472] [Reg 2.078] betterC: cannot use format at compile time.

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18472 --- Comment #4 from Mike Franklin --- Isn't this then a duplicate of Issue 18101? In other words, if Issue 18101 were solved, there wouldn't be a need for TypeInfo, and therefore the TypeInfo error would not be triggered? --

[Issue 18472] [Reg 2.078] betterC: cannot use format at compile time.

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18472 Mike Franklin changed: What|Removed |Added See Also|

Re: NNTP client configuration

2018-02-20 Thread Brad Roberts via Digitalmars-d
On 2/20/2018 4:53 PM, Seb via Digitalmars-d wrote: On Wednesday, 21 February 2018 at 00:32:54 UTC, Manu wrote: On 20 February 2018 at 02:05, Jonathan M Davis via Digitalmars-d wrote: Now, the double-posting with both text and html is another matter entirely but

Re: NNTP client configuration

2018-02-20 Thread Seb via Digitalmars-d
On Wednesday, 21 February 2018 at 00:32:54 UTC, Manu wrote: On 20 February 2018 at 02:05, Jonathan M Davis via Digitalmars-d wrote: Now, the double-posting with both text and html is another matter entirely but if the NG really doesn't want the html version of

Re: NNTP client configuration

2018-02-20 Thread Manu via Digitalmars-d
On 20 February 2018 at 02:05, Jonathan M Davis via Digitalmars-d wrote: > > Now, the double-posting with both text and html is another matter entirely > and certainly something that's the fault of the e-mail client. I don't know > how configurable that is with gmail

Re: NNTP client configuration

2018-02-20 Thread Manu via Digitalmars-d
On 20 February 2018 at 01:23, Walter Bright via Digitalmars-d wrote: > > It's annoying because I do not know if he intended to send me private email > or intended it to be public on the forum. It doesn't sound like he intended > to send these private emails, making it

Re: Annoyance with new integer promotion deprecations

2018-02-20 Thread Manu via Digitalmars-d
On 19 February 2018 at 21:16, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: > > On 02/19/2018 03:52 AM, Manu wrote: >> >> On 18 Feb. 2018 10:25 pm, "Walter Bright via Digitalmars-d" < >> digitalmars-d@puremagic.com> wrote: >> >> On 2/18/2018 7:52 PM, Nick

[Issue 18472] [Reg 2.078] betterC: cannot use format at compile time.

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18472 --- Comment #3 from Nicholas Wilson --- (In reply to Martin Nowak from comment #2) > cat > bug.d << CODE > import std.format; > import std.stdio; > void main() > { > enum s = "%1$s,%2$s".format("foo","bar"); >

[Issue 18480] dmd 2.079 hangs

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18480 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

[Issue 18460] Improve error message for missing 'new' for class instantiation

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18460 Seb changed: What|Removed |Added Keywords||pull --- Comment #1 from Seb

[Issue 18481] New: demangling error in stacktrace

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18481 Issue ID: 18481 Summary: demangling error in stacktrace Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: normal Priority: P1

[Issue 18480] dmd 2.079 hangs

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18480 --- Comment #2 from Timothee Cour --- ``` (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP * frame #0: 0x0001000309fc dmd OverDeclaration::isOverDeclaration() frame #1:

[Issue 18480] dmd 2.079 hangs

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

[Issue 18480] New: dmd 2.079 hangs

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18480 Issue ID: 18480 Summary: dmd 2.079 hangs Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: regression Priority: P1

[Issue 18380] Integral Promotion Fix 16997 should ignore if ultimate result is cast to original or smaller type

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18380 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment

Re: NNTP client configuration

2018-02-20 Thread H. S. Teoh via Digitalmars-d
On Tue, Feb 20, 2018 at 03:08:37PM -0800, Walter Bright via Digitalmars-d wrote: > On 2/20/2018 2:05 AM, Jonathan M Davis wrote: > > Does gmail even have an NNTP client? > > He wrote: "Apparently gmail has a new trick... reply to thread == > reply-all." AFAIK, Google Groups has an NNTP interface

[Issue 18451] [REG 2.076.1] In certain circumstances, calling remove on an array of delegates fails

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18451 --- Comment #6 from ArturG --- (In reply to ArturG from comment #5) > (In reply to ArturG from comment #4) > > std.container and std.variant are also affected by this, none of them workd > > with a void delegate(void*).

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 2:05 AM, Jonathan M Davis wrote: Does gmail even have an NNTP client? He wrote: "Apparently gmail has a new trick... reply to thread == reply-all."

Re: Annoyance with new integer promotion deprecations

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 6:23 AM, Steven Schveighoffer wrote: P.S. yes, Walter, I created a bugzilla for this :) https://issues.dlang.org/show_bug.cgi?id=18380 You da man, Steve! :-)

Re: Beta 2.079.0

2018-02-20 Thread H. S. Teoh via Digitalmars-d-announce
On Tue, Feb 20, 2018 at 10:19:03PM +, John Gabriele via Digitalmars-d-announce wrote: [...] > Thanks. Is the point to be able to string a bunch of selective imports > together, as in: > > import pkg.mod1 : sym1, sym2, pkg.mod2 : sym1, sym2, pkg.mod3 : sym1; > > ? > > That's difficult

Re: Beta 2.079.0

2018-02-20 Thread Basile B. via Digitalmars-d-announce
On Tuesday, 20 February 2018 at 21:54:34 UTC, Bastiaan Veelo wrote: And, I am quite sure: BBasile = Basile Burg. (Sorry no PR, I am on my phone in a hotel.) Yeah you're right Bastiaan, although for the NG i use a third variation.

Re: Beta 2.079.0

2018-02-20 Thread John Gabriele via Digitalmars-d-announce
On Tuesday, 20 February 2018 at 20:08:55 UTC, jmh530 wrote: On Tuesday, 20 February 2018 at 19:36:46 UTC, John Gabriele wrote: In: import myModule : foo, bar; how do you know if bar is myModule.bar or if it's a separate module bar? It probably could be described a little better in the

[Issue 18451] [REG 2.076.1] In certain circumstances, calling remove on an array of delegates fails

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18451 --- Comment #5 from ArturG --- (In reply to ArturG from comment #4) > std.container and std.variant are also affected by this, none of them workd > with a void delegate(void*). ok was able to find the code that broke

Re: Link to https://run.dlang.io/ ??

2018-02-20 Thread Seb via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 14:45:55 UTC, Dennis wrote: I recently tried to go to that site, and I tried `run.dlang.com` which is the wrong URL. So I was looking through the D homepage for the right link but couldn't find it. Even a Google search for "online d compiler" or "run dlang

[Issue 18479] does not match template declaration: syntax highlight error and enum not symbolized

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18479 --- Comment #1 from Timothee Cour --- NOTE: for context here's the enum: ``` enum SliceKind { /// A slice has strides for all dimensions. universal, /// A slice has >=2 dimensions and row dimension is

[Issue 18479] does not match template declaration: syntax highlight error and enum not symbolized

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

[Issue 18479] New: does not match template declaration: syntax highlight error and enum not symbolized

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18479 Issue ID: 18479 Summary: does not match template declaration: syntax highlight error and enum not symbolized Product: D Version: D2 Hardware: x86 OS: Mac OS X

Re: Capturing by reference with "visit" from std.variant

2018-02-20 Thread Smaehtin via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 16:20:45 UTC, Smaehtin wrote: On Tuesday, 20 February 2018 at 16:15:56 UTC, Radu wrote: On Tuesday, 20 February 2018 at 16:01:11 UTC, Smaehtin wrote: I'm trying to understand why the following doesn't work: import std.stdio; import std.variant; void main() {

Re: Beta 2.079.0

2018-02-20 Thread Bastiaan Veelo via Digitalmars-d-announce
And, I am quite sure: BBasile = Basile Burg. (Sorry no PR, I am on my phone in a hotel.)

Re: Why std_data_json is not default in phobos

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, February 20, 2018 15:08:04 aberba via Digitalmars-d wrote: > On Tuesday, 20 February 2018 at 12:10:35 UTC, Jonathan M Davis > > wrote: > > [...] > > Hmm. I'm glad its available in dub. Not helpful to those not > using dub though. Beginners too. Well, ideally, std.json would be

Re: Throwing D exceptions through C++ call stack

2018-02-20 Thread Timothee Cour via Digitalmars-d
https://github.com/Syniurge/Calypso now allows catch C++ exceptions from D handlers (on OSX and linux at least) On Tue, Feb 20, 2018 at 1:04 PM, H. S. Teoh via Digitalmars-d wrote: > I'm piecewise migrating one of my old C++ projects to D, and one of the > major

Throwing D exceptions through C++ call stack

2018-02-20 Thread H. S. Teoh via Digitalmars-d
I'm piecewise migrating one of my old C++ projects to D, and one of the major issues right now is exception handling. What's the state of C++ exception support right now? Is it safe for a D function (called from C++ code) to throw an exception, and have the stack unwind through the C++ call

[Issue 18473] std.math.approxEqual no longer accepts nested ranges

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18473 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --

Re: Beta 2.079.0

2018-02-20 Thread Timothee Cour via Digitalmars-d-announce
so how does one enforce that it imports `bar` as a module and not a symbol in myModule when doing `import myModule : foo, bar;` ? could this be supported: `import myModule : foo, bar :`; to break ambiguity? On Tue, Feb 20, 2018 at 12:10 PM, jmh530 via Digitalmars-d-announce

Re: Beta 2.079.0

2018-02-20 Thread jmh530 via Digitalmars-d-announce
On Tuesday, 20 February 2018 at 20:08:55 UTC, jmh530 wrote: So in your example you know that bar is in myModule because bar is neither fully qualified, nor is it fully qualified. *nor does it have selective imports.

Re: How to represent multiple files in a forum post?

2018-02-20 Thread Basile B. via Digitalmars-d
On Tuesday, 20 February 2018 at 18:41:08 UTC, Seb wrote: On Wednesday, 14 February 2018 at 18:33:23 UTC, Jonathan Marler wrote: @timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? ... and now it's available on run.dlang.io:

Re: Beta 2.079.0

2018-02-20 Thread jmh530 via Digitalmars-d-announce
On Tuesday, 20 February 2018 at 19:36:46 UTC, John Gabriele wrote: In: import myModule : foo, bar; how do you know if bar is myModule.bar or if it's a separate module bar? It probably could be described a little better in the change log. It uses examples, but doesn't really describe

[Issue 8295] Struct member destructor can not be called from shared struct instance

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8295 --- Comment #13 from Marco Leise --- (In reply to anonymous4 from comment #12) > (In reply to Marco Leise from comment #10) > > You can tell where I'm going: Copy a shared reference counting struct and it > > is no longer shared

Re: Beta 2.079.0

2018-02-20 Thread Basile B. via Digitalmars-d-announce
On Tuesday, 20 February 2018 at 08:26:06 UTC, Rainer Schuetze wrote: On 20/02/2018 01:58, Basile B. wrote: On Monday, 19 February 2018 at 21:50:02 UTC, Rainer Schuetze wrote: On 19/02/2018 21:17, Andre Pany wrote: On Monday, 19 February 2018 at 10:49:03 UTC, Martin Nowak wrote: Glad to

[Issue 16189] Optimizer bug, with simple test case

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16189 bitter.ta...@gmx.com changed: What|Removed |Added CC||bitter.ta...@gmx.com --- Comment #6

Re: Can someone help a Reddit user

2018-02-20 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/20/18 2:00 PM, bachmeier wrote: Someone has posted a question on our subreddit. Would be nice if he could get an answer: https://www.reddit.com/r/d_language/comments/7yxwvm/why_do_my_threads_write_to_the_wrong_file/ I responded. Looks to me like a race condition in the DMC libc code,

[Issue 18478] New: Spurious "escapes a reference to local variable" error in function that does not return by reference

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18478 Issue ID: 18478 Summary: Spurious "escapes a reference to local variable" error in function that does not return by reference Product: D Version: D2 Hardware: x86

Re: Beta 2.079.0

2018-02-20 Thread John Gabriele via Digitalmars-d-announce
On Tuesday, 20 February 2018 at 08:43:50 UTC, Martin Nowak wrote: On Monday, 19 February 2018 at 15:58:57 UTC, Joakim wrote: 17. Allow multiple selective imports from different modules in a single import statement I have a bad feeling that that one is going to be a source of a raft of bugs

[Issue 18477] -run isn't DRY and leads to unexpected errors

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

Re: variable destructuring in D (tuples and ranges)

2018-02-20 Thread Timothee Cour via Digitalmars-d
see https://forum.dlang.org/post/p3bdp1$2b4e$1...@digitalmars.com [Tuple DIP] On Tue, Feb 20, 2018 at 11:01 AM, valmat via Digitalmars-d wrote: > Hi there! > I just started learn D. > First it is greatful language. > But unfortunatly it doesn't have variable

[Issue 18451] [REG 2.076.1] In certain circumstances, calling remove on an array of delegates fails

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18451 --- Comment #4 from ArturG --- std.container and std.variant are also affected by this, none of them workd with a void delegate(void*). --

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

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18341 bachm...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

variable destructuring in D (tuples and ranges)

2018-02-20 Thread valmat via Digitalmars-d
Hi there! I just started learn D. First it is greatful language. But unfortunatly it doesn't have variable destructuring syntax. Like this: ``` auto x,y,z = tuple(26, "hi", 'a'); auto x,y,z = [1,2,3]; auto x,y,z = anyRange; ``` Because it is convenient i wrote my own implementation of this

Can someone help a Reddit user

2018-02-20 Thread bachmeier via Digitalmars-d-learn
Someone has posted a question on our subreddit. Would be nice if he could get an answer: https://www.reddit.com/r/d_language/comments/7yxwvm/why_do_my_threads_write_to_the_wrong_file/

[Issue 18477] New: -run isn't DRY and leads to unexpected errors

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18477 Issue ID: 18477 Summary: -run isn't DRY and leads to unexpected errors Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

Re: How to represent multiple files in a forum post?

2018-02-20 Thread Seb via Digitalmars-d
On Wednesday, 14 February 2018 at 18:33:23 UTC, Jonathan Marler wrote: @timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? ... and now it's available on run.dlang.io: https://run.dlang.io/is/ZHm2Xe This means that it can be used

[Issue 18476] New: -run should not only take the next argument

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18476 Issue ID: 18476 Summary: -run should not only take the next argument Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

[Issue 18469] [REG 2.079-b1] Segfault when trying to get type of __dtor.opCall

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

[Issue 18469] [REG 2.079-b1] Segfault when trying to get type of __dtor.opCall

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18469 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/325abdfaf6113a6787aedcd958971228d8d44adb fix issue 18469 - [REG 2.079-b1] Segfault when trying to get

[Issue 18475] std.net.curl.mailTo() calls tempCString without importing

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18475 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 18475] New: std.net.curl.mailTo() calls tempCString without importing

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18475 Issue ID: 18475 Summary: std.net.curl.mailTo() calls tempCString without importing Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 18472] [Reg 2.078] betterC: cannot use format at compile time.

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18472 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu

Re: Trying to forward unwrapped opDispatch names to alias this

2018-02-20 Thread aliak via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 16:12:17 UTC, Adam D. Ruppe wrote: On Monday, 19 February 2018 at 08:28:22 UTC, aliak wrote: T is the wrapped type. So if T has a member (in the example it's the built in field "max") then forward that. Oh, I see what you mean. So the problem is that built in

Re: Trying to forward unwrapped opDispatch names to alias this

2018-02-20 Thread aliak via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 11:27:23 UTC, Alex wrote: There is a related ticket, https://issues.dlang.org/show_bug.cgi?id=6434 However, not exactly facing this question. Should that ticket be marked as resolved? The issue is for alias this to be considered before opDispatch but there were

Re: Capturing by reference with "visit" from std.variant

2018-02-20 Thread Smaehtin via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 16:15:56 UTC, Radu wrote: On Tuesday, 20 February 2018 at 16:01:11 UTC, Smaehtin wrote: I'm trying to understand why the following doesn't work: import std.stdio; import std.variant; void main() { Algebraic!(string, int) test = "Test"; test.tryVisit!(

Re: Capturing by reference with "visit" from std.variant

2018-02-20 Thread Radu via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 16:01:11 UTC, Smaehtin wrote: I'm trying to understand why the following doesn't work: import std.stdio; import std.variant; void main() { Algebraic!(string, int) test = "Test"; test.tryVisit!( (ref string s) { s = "Why does this not work?"; }

[Issue 18474] New: Postblit not working in shared structs

2018-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18474 Issue ID: 18474 Summary: Postblit not working in shared structs Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority:

Re: Trying to forward unwrapped opDispatch names to alias this

2018-02-20 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 19 February 2018 at 08:28:22 UTC, aliak wrote: T is the wrapped type. So if T has a member (in the example it's the built in field "max") then forward that. Oh, I see what you mean. So the problem is that built in types don't have "members" per se, they have "magic". The built in

Capturing by reference with "visit" from std.variant

2018-02-20 Thread Smaehtin via Digitalmars-d-learn
I'm trying to understand why the following doesn't work: import std.stdio; import std.variant; void main() { Algebraic!(string, int) test = "Test"; test.tryVisit!( (ref string s) { s = "Why does this not work?"; } ); writeln(test); } But this works fine:

Re: Manually allocating a File

2018-02-20 Thread Chris M. via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 15:18:11 UTC, Adam D. Ruppe wrote: On Tuesday, 20 February 2018 at 14:56:54 UTC, Chris M. wrote: I'm doing this mainly for experimentation, but the following piece of code gives all sorts of errors. so important note: this will perform worse than the automatic

Re: Generic Property Implementation

2018-02-20 Thread Simen Kjærås via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 14:34:53 UTC, bauss wrote: Would there be a reason why this wouldn't be a good implementation? What is the intended use case for this? The main feature seems to be an ability to have read-only members, which is nice. Are there other benefits? If so what

excel-d v0.3.1 - now with more structs and enums

2018-02-20 Thread Atila Neves via Digitalmars-d-announce
http://code.dlang.org/packages/excel-d excel-d lets you write Excel add-ins in D, automagically wrapping D functions that are then callable by Excel. This latest release allows one to get the calling cell, and adds the possibility of passing and returning user-defined enums and structs.

Re: Annotation of functions

2018-02-20 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 20 February 2018 at 13:27:08 UTC, psychoticRabbit wrote: so.. in that case..another idea...how about a compiler option to output a list of functions. (I don't really expect many will warm to that idea.) Does anyone know of any tool that could do such a thing? I just want of a

Re: Manually allocating a File

2018-02-20 Thread Uknown via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 14:56:54 UTC, Chris M. wrote: I'm doing this mainly for experimentation, but the following piece of code gives all sorts of errors. Hangs, segfaults or prints nothing and exits import std.stdio; import core.stdc.stdlib; void main() { auto f = cast(File *)

Re: Manually allocating a File

2018-02-20 Thread Uknown via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 15:21:59 UTC, Uknown wrote: On Tuesday, 20 February 2018 at 14:56:54 UTC, Chris M. wrote: void main() [snip] Never mind, I confused FILE* with File...

  1   2   >