Re: This thread on Hacker News terrifies me

2018-08-31 Thread rikki cattermole via Digitalmars-d
Then there are polytechnics which I went to for my degree, where the focus was squarely on Industry and not on academia at all. But in saying that, we had third year students starting out not understanding how cli arguments work so... Proper software engineering really takes 5+ years just to

Re: This thread on Hacker News terrifies me

2018-08-31 Thread rikki cattermole via Digitalmars-d
On 01/09/2018 12:40 PM, tide wrote: On Friday, 31 August 2018 at 22:42:39 UTC, Walter Bright wrote: On 8/31/2018 2:40 PM, tide wrote: I don't think I've ever had a **game** hung up in a black screen and not be able to close it. I've had that problem with every **DVD player** I've had in the

Re: This thread on Hacker News terrifies me

2018-08-31 Thread tide via Digitalmars-d
On Friday, 31 August 2018 at 22:05:18 UTC, H. S. Teoh wrote: On Fri, Aug 31, 2018 at 09:40:50PM +, tide via Digitalmars-d wrote: On Friday, 31 August 2018 at 21:31:02 UTC, 0xEAB wrote: [...] > Furthermore, how often have we cursed about games that hung > up with a blackscreen and didn't

Re: Looking for a mentor for SAoC

2018-08-31 Thread solidstate1991 via Digitalmars-d
On Monday, 27 August 2018 at 20:47:08 UTC, Stefam Koch wrote: I guess I could help you out with coff. generating it is not the problem but linking it on windows currently requires the MS linker. which may not be desired. then again ... I think binutils do support coff as well. I might need

Re: This thread on Hacker News terrifies me

2018-08-31 Thread tide via Digitalmars-d
On Friday, 31 August 2018 at 22:27:47 UTC, Walter Bright wrote: On 8/31/2018 2:21 PM, tide wrote: On Friday, 31 August 2018 at 19:50:20 UTC, Walter Bright wrote: "Stopping all executing may not be the correct 'safe state' for an airplane though!" Depends on the aircraft and how it is

Re: This thread on Hacker News terrifies me

2018-08-31 Thread tide via Digitalmars-d
On Friday, 31 August 2018 at 22:42:39 UTC, Walter Bright wrote: On 8/31/2018 2:40 PM, tide wrote: I don't think I've ever had a **game** hung up in a black screen and not be able to close it. I've had that problem with every **DVD player** I've had in the last 20 years. Power cycling is the

Re: This thread on Hacker News terrifies me

2018-08-31 Thread RhyS via Digitalmars-d
On Friday, 31 August 2018 at 23:47:40 UTC, Jonathan M Davis wrote: The are plenty of cases where the teachers actually do an excellent job teaching the material that the courses cover. It's just that the material is often about theoretical computer science - and this is actually stuff that can

Re: This thread on Hacker News terrifies me

2018-08-31 Thread H. S. Teoh via Digitalmars-d
On Fri, Aug 31, 2018 at 05:47:40PM -0600, Jonathan M Davis via Digitalmars-d wrote: [...] > The school I went to (Cal Poly, San Luis Obispo) at least tries to > focus on the practical side of things (their motto is "learn by > doing"), and when I went there, they even specifically had a Software

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Jonathan M Davis via Digitalmars-d
On Friday, August 31, 2018 5:20:08 PM MDT H. S. Teoh via Digitalmars-d wrote: > A consequence of this disconnect is that the incentives are set up all > wrong. Professors are paid to publish research papers, not to teach > students. Teaching is often viewed as an undesired additional burden >

Re: This thread on Hacker News terrifies me

2018-08-31 Thread H. S. Teoh via Digitalmars-d
On Fri, Aug 31, 2018 at 04:45:57PM -0600, Jonathan M Davis via Digitalmars-d wrote: > On Friday, August 31, 2018 4:23:09 PM MDT Walter Bright via Digitalmars-d > wrote: [...] > > That won't fix anything, because there is NO conventional wisdom in > > software engineering for how to deal with

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Jonathan M Davis via Digitalmars-d
On Friday, August 31, 2018 4:23:09 PM MDT Walter Bright via Digitalmars-d wrote: > On 8/31/2018 1:42 PM, Paulo Pinto wrote: > > Some countries do have engineering certifications and professional > > permits for software engineering, but its still a minority. > > That won't fix anything, because

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Walter Bright via Digitalmars-d
On 8/31/2018 2:40 PM, tide wrote: I don't think I've ever had a game hung up in a black screen and not be able to close it. I've had that problem with every DVD player I've had in the last 20 years. Power cycling is the only fix.

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Walter Bright via Digitalmars-d
On 8/31/2018 2:21 PM, tide wrote: On Friday, 31 August 2018 at 19:50:20 UTC, Walter Bright wrote: "Stopping all executing may not be the correct 'safe state' for an airplane though!" Depends on the aircraft and how it is implemented. If you have a plane that is fly by wire, and you stop all

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Walter Bright via Digitalmars-d
On 8/31/2018 1:42 PM, Paulo Pinto wrote: Some countries do have engineering certifications and professional permits for software engineering, but its still a minority. That won't fix anything, because there is NO conventional wisdom in software engineering for how to deal with program bugs. I

Re: This thread on Hacker News terrifies me

2018-08-31 Thread H. S. Teoh via Digitalmars-d
On Fri, Aug 31, 2018 at 09:40:50PM +, tide via Digitalmars-d wrote: > On Friday, 31 August 2018 at 21:31:02 UTC, 0xEAB wrote: [...] > > Furthermore, how often have we cursed about games that hung up with > > a blackscreen and didn't let us close them by any mean other than > > logging off? If

Re: Engine of forum

2018-08-31 Thread 0xEAB via Digitalmars-d
On Friday, 24 August 2018 at 01:43:54 UTC, Walter Bright wrote: Why can't syntax formatting be implemented, does anyone disagree that is a useless feature? It's a useless feature. Formatting is needed for longer form text, which is not really appropriate for the forum. Forum posts should be

Re: This thread on Hacker News terrifies me

2018-08-31 Thread 0xEAB via Digitalmars-d
On Friday, 31 August 2018 at 21:40:50 UTC, tide wrote: The asserts being there still cause slow downs in things that would otherwise not be slow. Like how D does assert checks for indices. After the bug is fixed and the app is debugged, there's no need to keep those assertions. The release

Re: This thread on Hacker News terrifies me

2018-08-31 Thread tide via Digitalmars-d
On Friday, 31 August 2018 at 21:31:02 UTC, 0xEAB wrote: On Friday, 31 August 2018 at 21:21:16 UTC, tide wrote: Depends on the software being developed, for a game? Stopping at every assert would be madness. Let a lone having an over ubundance of asserts. Can't even imagine how many asserts

Re: This thread on Hacker News terrifies me

2018-08-31 Thread 0xEAB via Digitalmars-d
On Friday, 31 August 2018 at 21:21:16 UTC, tide wrote: Depends on the software being developed, for a game? Stopping at every assert would be madness. Let a lone having an over ubundance of asserts. Can't even imagine how many asserts there would be in for something like a matrix

Re: This thread on Hacker News terrifies me

2018-08-31 Thread tide via Digitalmars-d
On Friday, 31 August 2018 at 19:50:20 UTC, Walter Bright wrote: https://news.ycombinator.com/item?id=17880722 Typical comments: "Stopping all executing may not be the correct 'safe state' for an airplane though!" Depends on the aircraft and how it is implemented. If you have a plane that

Re: Assertions in production code on Reddit

2018-08-31 Thread H. S. Teoh via Digitalmars-d-announce
On Fri, Aug 31, 2018 at 02:02:39PM -0700, Walter Bright via Digitalmars-d-announce wrote: > On 8/31/2018 1:19 PM, Nick Sabalausky (Abscissa) wrote: > > (IF the programmer in question even has the expertise to implement > > such a system correctly anyway - and most don't). > > The closer you can

Re: This thread on Hacker News terrifies me

2018-08-31 Thread H. S. Teoh via Digitalmars-d
On Fri, Aug 31, 2018 at 08:42:38PM +, Paulo Pinto via Digitalmars-d wrote: > On Friday, 31 August 2018 at 19:50:20 UTC, Walter Bright wrote: > > https://news.ycombinator.com/item?id=17880722 [...] > > And on and on. It's unbelievable. The conventional wisdom in > > software for how to deal

Re: Assertions in production code on Reddit

2018-08-31 Thread Walter Bright via Digitalmars-d-announce
On 8/31/2018 1:19 PM, Nick Sabalausky (Abscissa) wrote: (IF the programmer in question even has the expertise to implement such a system correctly anyway - and most don't). The closer you can get to the ideal, the better. It's not all or nothing. I'll have done my job if people would just

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Paulo Pinto via Digitalmars-d
On Friday, 31 August 2018 at 19:50:20 UTC, Walter Bright wrote: https://news.ycombinator.com/item?id=17880722 Typical comments: "`assertAndContinue` crashes in dev and logs an error and keeps going in prod. Each time we want to verify a runtime assumption, we decide which type of assert to

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Steven Schveighoffer via Digitalmars-d
On 8/31/18 3:50 PM, Walter Bright wrote: https://news.ycombinator.com/item?id=17880722 Typical comments: "`assertAndContinue` crashes in dev and logs an error and keeps going in prod. Each time we want to verify a runtime assumption, we decide which type of assert to use. We prefer

Re: Assertions in production code on Reddit

2018-08-31 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
On 08/30/2018 05:31 PM, Walter Bright wrote: https://www.reddit.com/r/programming/comments/9bl72d/assertions_in_production_code/ > >High reliability is not achieved by making perfect designs, it is >achieved by making designs that are tolerant of failure. Runtime >checking is essential to

This thread on Hacker News terrifies me

2018-08-31 Thread Walter Bright via Digitalmars-d
https://news.ycombinator.com/item?id=17880722 Typical comments: "`assertAndContinue` crashes in dev and logs an error and keeps going in prod. Each time we want to verify a runtime assumption, we decide which type of assert to use. We prefer `assertAndContinue` (and I push for it in code

Re: Copr repository providing dmd and dub for Fedora, EPEL and Mageia

2018-08-31 Thread Laurent Tréguier via Digitalmars-d-announce
On Friday, 31 August 2018 at 19:41:59 UTC, Martin Nowak wrote: Nice one. I see that you're using ldc as bootstrap/host compiler. While that will result in faster binaries (in particular useful for dmd), the official binaries releases are still built with dmd for now. Just worth noting as it

Re: Copr repository providing dmd and dub for Fedora, EPEL and Mageia

2018-08-31 Thread Martin Nowak via Digitalmars-d-announce
On Friday, 31 August 2018 at 18:44:23 UTC, Laurent Tréguier wrote: The repo is used just like any other Copr repo: sudo dnf copr enable tcg/devel sudo dnf install dmd dub Since Copr also allows building packages for EPEL and Mageia, I'm launching builds for them as well. [1]

Re: Engine of forum

2018-08-31 Thread tide via Digitalmars-d
On Friday, 24 August 2018 at 01:43:54 UTC, Walter Bright wrote: Nearly 20 years of the D forum consumes 2,800,000 4K blocks, or somewhat over a gigabyte. Not bad. Using years is about a pointless as using lines of code to evaluate a project. There's some sites that have received more

Re: Engine of forum

2018-08-31 Thread tide via Digitalmars-d
On Friday, 24 August 2018 at 01:43:54 UTC, Walter Bright wrote: On 8/21/2018 2:41 PM, tide wrote: What about if you accidentially press a button that posts the comment? That's really up to your NNTP client's design, which we didn't implement. There are lots of NNTP clients to choose from.

[Issue 19207] std.algorithm.subsitute wrong results for single subrange substitution

2018-08-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19207 ajiesk...@gmail.com changed: What|Removed |Added Status|NEW |ASSIGNED CC|

Re: extern __gshared const(char)* symbol fails

2018-08-31 Thread James Blachly via Digitalmars-d-learn
On Friday, 31 August 2018 at 17:50:17 UTC, Steven Schveighoffer wrote: What the C compiler is doing is storing it as data, and then storing the symbol to point at the first element in the data. When you use const char* in D, it's expecting a *pointer* to be stored at that address, not the

[Issue 15737] forward reference error in std.format

2018-08-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15737 ajiesk...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: extern __gshared const(char)* symbol fails

2018-08-31 Thread James Blachly via Digitalmars-d-learn
On Friday, 31 August 2018 at 17:18:58 UTC, Neia Neutuladh wrote: On Friday, 31 August 2018 at 06:20:09 UTC, James Blachly wrote: Hi all, ... When linking to this library from D, I have declared it as: extern __gshared const(char)* seq_nt16_str; ***But this segfaults when I treat it like an

Copr repository providing dmd and dub for Fedora, EPEL and Mageia

2018-08-31 Thread Laurent Tréguier via Digitalmars-d-announce
Hello D people! (and especially, for this thread, RPM-based Linux users) As dmd 2.082.0 is coming very soon, I thought I'd share this here. I've been using Fedora for quite a while now, and have made a Copr repository to have some tools I didn't find in official Fedora repositories [1]. It

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-31 Thread Laeeth Isharc via Digitalmars-d
On Friday, 31 August 2018 at 09:37:55 UTC, Chris wrote: On Wednesday, 29 August 2018 at 23:47:11 UTC, Laeeth Isharc wrote: On Tuesday, 28 August 2018 at 08:51:27 UTC, Chris wrote: 9. I hope D will be great again Are you someone who lives by hope and fears about things that have a

Re: extern __gshared const(char)* symbol fails

2018-08-31 Thread nkm1 via Digitalmars-d-learn
On Friday, 31 August 2018 at 06:20:09 UTC, James Blachly wrote: Hi all, I am linking to a C library which defines a symbol, const char seq_nt16_str[] = "=ACMGRSVTWYHKDBN"; In the C sources, this is an array of 16 bytes (17 I guess, because it is written as a string). In the C headers, it

Re: How to use listener.d example?

2018-08-31 Thread Neia Neutuladh via Digitalmars-d-learn
On Friday, 31 August 2018 at 07:38:54 UTC, Marcin wrote: https://github.com/dlang/dmd/blob/master/samples/listener.d Can some one add more comment to that example? I need to make code that connects to local application, very similar to this. Assumptions: 1. Create an application that

Re: extern __gshared const(char)* symbol fails

2018-08-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/31/18 2:20 AM, James Blachly wrote: Hi all, I am linking to a C library which defines a symbol, const char seq_nt16_str[] = "=ACMGRSVTWYHKDBN"; In the C sources, this is an array of 16 bytes (17 I guess, because it is written as a string). In the C headers, it is listed as extern

Re: extern __gshared const(char)* symbol fails

2018-08-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/31/18 1:18 PM, Neia Neutuladh wrote: On Friday, 31 August 2018 at 06:20:09 UTC, James Blachly wrote: Hi all, I am linking to a C library which defines a symbol, const char seq_nt16_str[] = "=ACMGRSVTWYHKDBN"; In the C sources, this is an array of 16 bytes (17 I guess, because it is

Re: Is there any reason to use non-ref foreach?

2018-08-31 Thread Dukc via Digitalmars-d-learn
On Friday, 31 August 2018 at 12:52:17 UTC, bauss wrote: In reality you're micro-optimizing something that doesn't require it. I think you misunderstood. I wasn't trying to optimize, I was looking for a general way to iterate. I can't see the benefit other than added complexity. I just

Re: extern __gshared const(char)* symbol fails

2018-08-31 Thread Neia Neutuladh via Digitalmars-d-learn
On Friday, 31 August 2018 at 06:20:09 UTC, James Blachly wrote: Hi all, I am linking to a C library which defines a symbol, const char seq_nt16_str[] = "=ACMGRSVTWYHKDBN"; In the C sources, this is an array of 16 bytes (17 I guess, because it is written as a string). In the C headers, it

Re: Is there any reason to use non-ref foreach?

2018-08-31 Thread James Blachly via Digitalmars-d-learn
On Friday, 31 August 2018 at 12:52:17 UTC, bauss wrote: So basically ... Instead of copying the value, you're just copying the address. I can't see the benefit other than added complexity. I assume a benefit could be observed if you are copying a large struct instead of an int.

Re: D is dead

2018-08-31 Thread Basile B. via Digitalmars-d
On Friday, 31 August 2018 at 08:36:27 UTC, Nick Treleaven wrote: I hadn't understood the rationale for lazy variadic functions https://dlang.org/spec/function.html#lazy_variadic_functions I don't know if this has been updated too but this sentence makes no sense : "Then each of the

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-31 Thread H. S. Teoh via Digitalmars-d
On Fri, Aug 31, 2018 at 03:13:30PM +, Chris via Digitalmars-d wrote: > On Friday, 31 August 2018 at 14:38:36 UTC, H. S. Teoh wrote: > > On Fri, Aug 31, 2018 at 09:37:55AM +, Chris via Digitalmars-d wrote: > > [...] > > > 3. moving the goal posts all the time and forcing you into a new > >

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-31 Thread Chris via Digitalmars-d
On Friday, 31 August 2018 at 14:38:36 UTC, H. S. Teoh wrote: On Fri, Aug 31, 2018 at 09:37:55AM +, Chris via Digitalmars-d wrote: [...] 3. moving the goal posts all the time and forcing you into a new paradigm every 1 1/2 years (first it was "ranges", then "templates" and now it's

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-31 Thread H. S. Teoh via Digitalmars-d
On Fri, Aug 31, 2018 at 09:37:55AM +, Chris via Digitalmars-d wrote: [...] > 3. moving the goal posts all the time and forcing you into a new > paradigm every 1 1/2 years (first it was "ranges", then "templates" > and now it's "functional", wait OOP will come back one day). [...] Wait, what?

Re: How to use math functions in dcompute?

2018-08-31 Thread Nicholas Wilson via Digitalmars-d-learn
On Thursday, 30 August 2018 at 10:34:33 UTC, Sobaya wrote: On Monday, 27 August 2018 at 12:47:45 UTC, Nicholas Wilson wrote: On Monday, 27 August 2018 at 09:57:18 UTC, Sobaya wrote: On Monday, 27 August 2018 at 09:41:34 UTC, 9il wrote: On Monday, 27 August 2018 at 08:25:14 UTC, Sobaya wrote:

Re: Is there any reason to use non-ref foreach?

2018-08-31 Thread bauss via Digitalmars-d-learn
On Friday, 31 August 2018 at 09:59:20 UTC, Dukc wrote: For me, it seems that for generality you should always add ref into foreach loop variable. The reason is this: import std.experimental.all; struct NoCopies { @disable this(this); int payload; } void main() { auto range = new

Re: Can't print enum values

2018-08-31 Thread Andrey via Digitalmars-d-learn
On Friday, 31 August 2018 at 12:21:48 UTC, aliak wrote: auto ToUnderlyingType(alias a)() { return cast(OriginalType!(typeof(a)))a; } void print(T...)(T args) { writeln(staticMap!(ToUnderlyingType, args)); } Oohhh. So easy! Killed 2 days - and templates and mixins tried... And the

[Issue 19202] deprecated eponymous template prints no warning

2018-08-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19202 Mike Franklin changed: What|Removed |Added Keywords||pull --

[Issue 19202] deprecated eponymous template prints no warning

2018-08-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19202 --- Comment #2 from Mike Franklin --- Attempted fix: https://github.com/dlang/dmd/pull/8645 --

Re: Can't print enum values

2018-08-31 Thread aliak via Digitalmars-d-learn
On Friday, 31 August 2018 at 10:51:51 UTC, Andrey wrote: On Thursday, 30 August 2018 at 12:04:26 UTC, vit wrote: On Thursday, 30 August 2018 at 11:34:36 UTC, Andrey wrote: On Thursday, 30 August 2018 at 11:09:40 UTC, vit wrote: [...] I want to create a reusable template for this purpose.

[Issue 19202] deprecated eponymous template prints no warning

2018-08-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19202 Mike Franklin changed: What|Removed |Added CC||slavo5...@yahoo.com --- Comment #1 from

Re: Engine of forum

2018-08-31 Thread Petar via Digitalmars-d
On Friday, 31 August 2018 at 10:37:05 UTC, rikki cattermole wrote: On 31/08/2018 10:16 PM, Andrey wrote: Any self-respecting website related to programming or developing something, has in its composition a place where people can comfortably and freely discuss pressing issues. Not some weird

Re: Can't print enum values

2018-08-31 Thread Andrey via Digitalmars-d-learn
On Thursday, 30 August 2018 at 12:04:26 UTC, vit wrote: On Thursday, 30 August 2018 at 11:34:36 UTC, Andrey wrote: On Thursday, 30 August 2018 at 11:09:40 UTC, vit wrote: [...] I want to create a reusable template for this purpose. Why I can't use "staticMap" so that compiler it self would

Re: Solving the impossible?

2018-08-31 Thread aliak via Digitalmars-d-learn
On Thursday, 30 August 2018 at 21:40:40 UTC, Everlast wrote: On Thursday, 30 August 2018 at 00:10:42 UTC, Paul Backus wrote: [...] This is not true! You claim that I'm making a blanket statement about what mathematicians would view then you do the same. [...] If ... implies "an arbitrary

Re: Engine of forum

2018-08-31 Thread rikki cattermole via Digitalmars-d
On 31/08/2018 10:16 PM, Andrey wrote: Any self-respecting website related to programming or developing something, has in its composition a place where people can comfortably and freely discuss pressing issues. Not some weird news group. Feel free to argue this for projects like the Linux

Re: Engine of forum

2018-08-31 Thread Andrey via Digitalmars-d
On Friday, 24 August 2018 at 01:43:54 UTC, Walter Bright wrote: On 8/21/2018 2:41 PM, tide wrote: What about if you accidentially press a button that posts the comment? That's really up to your NNTP client's design, which we didn't implement. There are lots of NNTP clients to choose from.

Is there any reason to use non-ref foreach?

2018-08-31 Thread Dukc via Digitalmars-d-learn
For me, it seems that for generality you should always add ref into foreach loop variable. The reason is this: import std.experimental.all; struct NoCopies { @disable this(this); int payload; } void main() { auto range = new NoCopies[20]; foreach(const ref el; range)

Re: [OT] Leverage Points

2018-08-31 Thread Kagamin via Digitalmars-d
On Thursday, 30 August 2018 at 11:45:00 UTC, Joakim wrote: (Quoting from the article I think). Kuhn and Lakatos. Paradigm shifts don't take place when the dominant paradigm is defeated by logical or empirical means. Paradigm shifts take place when for some reason people say "how about we

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-31 Thread Chris via Digitalmars-d
On Wednesday, 29 August 2018 at 23:47:11 UTC, Laeeth Isharc wrote: On Tuesday, 28 August 2018 at 08:51:27 UTC, Chris wrote: Julia is great. I don't see it as a competitor to D but for us one way researchers might access libraries written in D. One could do quite a lot in it, but I don't

[Issue 17934] [scope] scopeness entrypoint for unique/ref-counted missing

2018-08-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17934 Mike Franklin changed: What|Removed |Added CC||slavo5...@yahoo.com --- Comment #7 from

Re: D is dead

2018-08-31 Thread Nick Treleaven via Digitalmars-d
On Thursday, 23 August 2018 at 09:09:40 UTC, Shachar Shemesh wrote: Please see the thread about lazy [1] for a case where a question actually has an answer, but nobody seems to know it I updated the spec for lazy parameters to add a link to lazy variadic functions at the end, and for the

[Issue 19097] Extend Return Scope Semantics

2018-08-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19097 --- Comment #10 from Mike Franklin --- Some comments from the forum worth visiting with regard to this proposal: https://forum.dlang.org/post/plja2k$28r0$1...@digitalmars.com https://forum.dlang.org/post/pljpnr$7g9$1...@digitalmars.com --

[Issue 19210] Poor error message for `return` function parameter that is not `ref`

2018-08-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19210 Mike Franklin changed: What|Removed |Added Keywords||safe Severity|enhancement

[Issue 19210] New: Poor error message for `return` function parameter that is not `ref`

2018-08-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19210 Issue ID: 19210 Summary: Poor error message for `return` function parameter that is not `ref` Product: D Version: D2 Hardware: All OS: All Status:

How to use listener.d example?

2018-08-31 Thread Marcin via Digitalmars-d-learn
https://github.com/dlang/dmd/blob/master/samples/listener.d Can some one add more comment to that example? I need to make code that connects to local application, very similar to this. Assumptions: 1. Create an application that listens to arguments. 2. Create an application that will send

extern __gshared const(char)* symbol fails

2018-08-31 Thread James Blachly via Digitalmars-d-learn
Hi all, I am linking to a C library which defines a symbol, const char seq_nt16_str[] = "=ACMGRSVTWYHKDBN"; In the C sources, this is an array of 16 bytes (17 I guess, because it is written as a string). In the C headers, it is listed as extern const char seq_nt16_str[]; When linking to