Enumerating unittests

2017-11-17 Thread Shachar Shemesh via Digitalmars-d
Hi all, Is there a way to enumerate all the unittests in a specific module? Thanks, Shachar

Re: DConf 2018 Logo

2017-11-17 Thread Dejan Lekic via Digitalmars-d
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu wrote: Hello, for all of you with expertise in graphics, we'd be in your debt if you could create a logo for DConf 2018. Proposals would be appreciated! Thanks, Andrei Why a new logo? The last year's one is superb and

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Atila Neves via Digitalmars-d
On Friday, 17 November 2017 at 10:45:13 UTC, codephantom wrote: Sounds to me, like too many people are writing incorrect code in the first place, Also known as "writing code". and want to offload responsibility onto something other than themself. That's the whole point of using a safe

Re: Enumerating unittests

2017-11-17 Thread Atila Neves via Digitalmars-d
On Friday, 17 November 2017 at 08:32:23 UTC, Michael V. Franklin wrote: On Friday, 17 November 2017 at 08:12:13 UTC, Shachar Shemesh wrote: Is there a way to enumerate all the unittests in a specific module? Try this: https://dlang.org/spec/traits.html#getUnitTests Mike Note that before

Re: Enumerating unittests

2017-11-17 Thread Michael V. Franklin via Digitalmars-d
On Friday, 17 November 2017 at 08:12:13 UTC, Shachar Shemesh wrote: Is there a way to enumerate all the unittests in a specific module? Try this: https://dlang.org/spec/traits.html#getUnitTests Mike

Re: User defined type and foreach

2017-11-17 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, November 17, 2017 07:40:35 Mike Parker via Digitalmars-d-learn wrote: > On Friday, 17 November 2017 at 03:15:12 UTC, Tony wrote: > > Thanks T! Good information, especially "iterating over a range > > is supposed to consume it". I have been reading > > dlang.org->Documentation->Language

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 17, 2017 01:47:01 Michael V. Franklin via Digitalmars-d wrote: > With Microsoft's proposed change, the compiler will emit a > warning for Example C. If you want to opt out of the warning, > you'll need to declare `_instance` as `Test? _instance` (see the > '?' there).

[Issue 17987] New: Cannot use string in Variant at compile time

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17987 Issue ID: 17987 Summary: Cannot use string in Variant at compile time Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: DConf 2018 Logo

2017-11-17 Thread Biotronic via Digitalmars-d
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu wrote: Hello, for all of you with expertise in graphics, we'd be in your debt if you could create a logo for DConf 2018. Proposals would be appreciated! Thanks, Andrei Hastily scribbled on graph paper because I liked the

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread rumbu via Digitalmars-d
On Friday, 17 November 2017 at 06:32:03 UTC, codephantom wrote: On Friday, 17 November 2017 at 05:50:24 UTC, rumbu wrote: You are not ending with nothing, you are ending with a run time error in D. In C# it's a compile-time error. Ideally, something ending for sure in an error at run time,

Re: TLC for ddox

2017-11-17 Thread Seb via Digitalmars-d
On Friday, 17 November 2017 at 03:04:20 UTC, Andrei Alexandrescu wrote: Whenever I look at the documentation, I find things that could be improved. Consider https://dlang.org/library/, one of the most important pages - the portal - of the hopefully future default documentation renderer. It

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread codephantom via Digitalmars-d
On Friday, 17 November 2017 at 09:44:01 UTC, rumbu wrote: I know your aversion towards C#, but this not about C#, it's about safety. And safety is one of the D taglines. Well the nice thing about that discussion (at:

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 17, 2017 09:44:01 rumbu via Digitalmars-d wrote: > I know your aversion towards C#, but this not about C#, it's > about safety. And safety is one of the D taglines. Completely aside from whether having the compile-time checks would be good or not, I would point out that this

Re: Class instance becoming null after calling bindings to C code???

2017-11-17 Thread Kagamin via Digitalmars-d-learn
And https://github.com/Extrawurst/DerelictFmod/issues/1

Re: DConf 2018 Logo

2017-11-17 Thread codephantom via Digitalmars-d
On Wednesday, 15 November 2017 at 22:40:04 UTC, H. S. Teoh wrote: On Wed, Nov 15, 2017 at 10:43:03PM +, codephantom via Umm...how is it, that your response to my post, precedes my post?

[Issue 17988] New: [ICE] Segfault when using member in map

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17988 Issue ID: 17988 Summary: [ICE] Segfault when using member in map Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: TLC for ddox

2017-11-17 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 17 November 2017 at 03:04:20 UTC, Andrei Alexandrescu wrote: Whenever I look at the documentation, I find things that could be improved. [...] Makes you want to go postal, innit? Makes me want to go "fork"-al. http://dpldocs.info/experimental-docs/std.html

[Issue 17986] Erratic failure with std/experimental/allocator/common.d(445): unittest failure

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

[Issue 17986] Erratic failure with std/experimental/allocator/common.d(445): unittest failure

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17986 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f529c855ae3f2dfd66d1f1f0af9873c1bbc01f0a Fix Issue 17986 - Erratic failure with

Re: writeln, alias this and dynamic arrays.

2017-11-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/17/17 8:13 AM, Adam D. Ruppe wrote: On Friday, 17 November 2017 at 06:57:16 UTC, Michael V. Franklin wrote: Actually, it looks like it's this 4-year old bug. https://issues.dlang.org/show_bug.cgi?id=9506 Yeah, I suspected this is old and my comment in there still applies... It passes

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Timon Gehr via Digitalmars-d
On 17.11.2017 11:19, Jonathan M Davis wrote: If the compiler can't guarantee that your code is wrong, then that check should be left up to a linter. I.e., you think the following code should compile: class C{} void main(){ size_t a = 2; C b = a; size_t c = b; import

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Timon Gehr via Digitalmars-d
On 17.11.2017 12:22, Jonathan M Davis wrote: On Friday, November 17, 2017 09:44:01 rumbu via Digitalmars-d wrote: I know your aversion towards C#, but this not about C#, it's about safety. And safety is one of the D taglines. Completely aside from whether having the compile-time checks would

Re: DConf 2018 Logo

2017-11-17 Thread Steven Schveighoffer via Digitalmars-d
On 11/17/17 4:46 AM, codephantom wrote: On Wednesday, 15 November 2017 at 22:40:04 UTC, H. S. Teoh wrote: On Wed, Nov 15, 2017 at 10:43:03PM +, codephantom via Umm...how is it, that your response to my post, precedes my post? One of your clocks is off by some amount. -Steve

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 17 November 2017 at 01:47:01 UTC, Michael V. Franklin wrote: It peeked my interested, because when I first started studying D, the lack of any warning or error for this trivial case surprised me. You wanna get freaked out? Try that very same trivial example with the `-O` option to

[Issue 17585] Wrong error message for deprecated overrides

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17585 Basile B. changed: What|Removed |Added CC||radu.raca...@gmail.com ---

[Issue 17989] [REG2.076] Confusing message on deprecated overrride

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17989 Basile B. changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 17, 2017 15:05:48 Timon Gehr via Digitalmars-d wrote: > On 17.11.2017 12:22, Jonathan M Davis wrote: > > On Friday, November 17, 2017 09:44:01 rumbu via Digitalmars-d wrote: > >> I know your aversion towards C#, but this not about C#, it's > >> about safety. And safety is one

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Jesse Phillips via Digitalmars-d
On Friday, 17 November 2017 at 10:45:13 UTC, codephantom wrote: I've always thought writing the correct code was the better option anyway. It is interesting that you mention this. Our product manager was talking to our senior developer about this very thing. He explained that it was a

[Issue 9506] When using alias this, writeln modifies its argument

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9506 Steven Schveighoffer changed: What|Removed |Added Keywords|wrong-code |

Re: NIO+Multithreaded TCPSocket listener, very low cpu utilisation

2017-11-17 Thread kdevel via Digitalmars-d-learn
On Thursday, 16 November 2017 at 19:37:31 UTC, ade90036 wrote: Can we enable some sort of profiling to see what is going on? You may compile the code with dmd -g -O -profile -profile=gc I currently struggle getting meaningful output. I want to terminate the program after a number (say 400)

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Timon Gehr via Digitalmars-d
On 17.11.2017 03:25, codephantom wrote: On Friday, 17 November 2017 at 01:47:01 UTC, Michael V. Franklin wrote: It peeked my interested, because when I first started studying D, the lack of any warning or error for this trivial case surprised me. // Example A class Test {     int Value; }

Re: writeln, alias this and dynamic arrays.

2017-11-17 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 17 November 2017 at 06:57:16 UTC, Michael V. Franklin wrote: Actually, it looks like it's this 4-year old bug. https://issues.dlang.org/show_bug.cgi?id=9506 Yeah, I suspected this is old and my comment in there still applies... It passes the isInputRange test due to the implicit

[Issue 17989] New: [REG2.076] Confusing message on deprecated overrride

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17989 Issue ID: 17989 Summary: [REG2.076] Confusing message on deprecated overrride Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: regression

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread jmh530 via Digitalmars-d
On Friday, 17 November 2017 at 14:53:40 UTC, Jonathan M Davis wrote: [snip] Regardless, given that dereferencing null will segfault, it does not present an @safety problem. @safe is really more of @memorysafe. Null safety is orthogonal to memory safety. I don't really use null much in D

Re: What do people here use as an IDE?

2017-11-17 Thread bauss via Digitalmars-d
On Wednesday, 13 October 2010 at 01:58:19 UTC, Michael Stover wrote: Elephant appears dead. Poseidon's activity is extremely low and is still alpha after 5 years. LEDS is even less active, and DDT doesn't have a release yet. What do actual D programmers use? -Mike I use Atom, so not

Re: Json

2017-11-17 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, November 17, 2017 19:02:12 Mafi via Digitalmars-d-learn wrote: > What is the current best practice for parsing JSON in D? What > library (on code.dlang.org) should I use? > > I do not want to (de-)serialize structs. Instead I want a simple > DOM-API. > > Thank you very much :) I've

Re: Bloat in Executable

2017-11-17 Thread Temtaime via Digitalmars-d
On Thursday, 16 November 2017 at 03:58:38 UTC, Adam D. Ruppe wrote: On Thursday, 16 November 2017 at 03:32:26 UTC, codephantom wrote: 23k executable if 32bit (i.e. -m32 ) It is the statically linked C library. Note that if you remove the call to printf, the size is slashed in half. Windows

Re: What do people here use as an IDE?

2017-11-17 Thread Satoshi via Digitalmars-d
On Wednesday, 13 October 2010 at 01:58:19 UTC, Michael Stover wrote: Elephant appears dead. Poseidon's activity is extremely low and is still alpha after 5 years. LEDS is even less active, and DDT doesn't have a release yet. What do actual D programmers use? -Mike vim

Re: What do people here use as an IDE?

2017-11-17 Thread Steven Schveighoffer via Digitalmars-d
On 11/17/17 1:30 PM, bauss wrote: On Wednesday, 13 October 2010 at 01:58:19 UTC, Michael Stover wrote: Elephant appears dead.  Poseidon's activity is extremely low and is still alpha after 5 years. LEDS is even less active, and DDT doesn't have a release yet.  What do actual D programmers use?

Json

2017-11-17 Thread Mafi via Digitalmars-d-learn
What is the current best practice for parsing JSON in D? What library (on code.dlang.org) should I use? I do not want to (de-)serialize structs. Instead I want a simple DOM-API. Thank you very much :)

Re: User defined type and foreach

2017-11-17 Thread Tony via Digitalmars-d-learn
On Friday, 17 November 2017 at 07:40:35 UTC, Mike Parker wrote: You might also find use in this article (poorly adapted from Chapter 6 of Learning D by the publisher, but still readable): https://www.packtpub.com/books/content/understanding-ranges makes a distinction about "range

Re: What do people here use as an IDE?

2017-11-17 Thread SrMordred via Digitalmars-d
I keep jumping between VSCode and SublimeText3 atm using ST3. (but they are not IDEs ;P)

Re: User defined type and foreach

2017-11-17 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, November 17, 2017 17:37:01 Tony via Digitalmars-d-learn wrote: > On Friday, 17 November 2017 at 07:40:35 UTC, Mike Parker wrote: > > You might also find use in this article (poorly adapted from > > Chapter 6 of Learning D by the publisher, but still readable): > > > >

Re: DConf 2018 Logo

2017-11-17 Thread Bastiaan Veelo via Digitalmars-d
On Friday, 17 November 2017 at 10:31:19 UTC, Dejan Lekic wrote: On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu wrote: Hello, for all of you with expertise in graphics, we'd be in your debt if you could create a logo for DConf 2018. Proposals would be appreciated! Thanks,

[Issue 17972] __traits(getLinkage) doesn't work for classes

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17972 --- Comment #2 from Jacob Carlborg --- What about using the existing fields in ClassDeclaration: "cpp", "objc" and so on [1]? I know it's not exactly the same. [1] https://github.com/dlang/dmd/blob/master/src/ddmd/dclass.d#L215-L218

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread codephantom via Digitalmars-d
On Saturday, 18 November 2017 at 04:56:19 UTC, codephantom wrote: First semester, programming course. Write a life-essential system in C, and simulate it. If patient dies, you fail. Second semester. Find vulnerability in another students semester 1 project. If you succeed, they fail the

Re: User defined type and foreach

2017-11-17 Thread Tony via Digitalmars-d-learn
On Saturday, 18 November 2017 at 05:24:30 UTC, Tony wrote: Forgot to handle pre-mature foreach exit: import std.stdio : writeln; class RefRange { int foreach_index; int[] items; this(int[] src) { items = src; } bool empty() { if (foreach_index ==

[Issue 17559] [REG2.073.0] Wrong line number in stack trace

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

[Issue 17990] New: Type.toChars() returns null and Type.size() returns nonsense on 32-bit platforms only

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17990 Issue ID: 17990 Summary: Type.toChars() returns null and Type.size() returns nonsense on 32-bit platforms only Product: D Version: D2 Hardware: x86 OS: All

DMD PR management hits a new low

2017-11-17 Thread Michael V. Franklin via Digitalmars-d
I'll just refer you to this comment: https://github.com/dlang/dmd/pull/6947#issuecomment-345423103 Manually merging this pull as it sat around long enough waiting to be marked approved that it accumulated github's max 1000 status updates per commit id and won't ever see more until a new

Re: User defined type and foreach

2017-11-17 Thread Tony via Digitalmars-d-learn
On Friday, 17 November 2017 at 17:55:30 UTC, Jonathan M Davis wrote: When you have foreach(e; range) it gets lowered to something like for(auto r = range; !r.empty; r.popFront()) { auto e = r.front; } So, the range is copied when you use it in a foreach. In the case of a class, it's

[Issue 17559] [REG2.073.0] Wrong line number in stack trace

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17559 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/127d639b6bbd82d1294da884a97de310e52985e0 fix issue 17559 - [REG2.073.0] Wrong line number in stack

Re: User defined type and foreach

2017-11-17 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, November 18, 2017 05:24:30 Tony via Digitalmars-d-learn wrote: > On Friday, 17 November 2017 at 17:55:30 UTC, Jonathan M Davis > > So, in the general case, if you want to use a range in foreach > > without consuming the range, it needs to be a forward range, > > and you need to call

Re: Enumerating unittests

2017-11-17 Thread Shachar Shemesh via Digitalmars-d
On 17/11/17 10:32, Michael V. Franklin wrote: On Friday, 17 November 2017 at 08:12:13 UTC, Shachar Shemesh wrote: Is there a way to enumerate all the unittests in a specific module? Try this: https://dlang.org/spec/traits.html#getUnitTests Mike This is precisely what I asked for, but not

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread codephantom via Digitalmars-d
On Saturday, 18 November 2017 at 03:39:50 UTC, Adam D. Ruppe wrote: If you have a life-essential system that can't survive a single part randomly failing, including a process terminating abnormally, you're an incompetent engineer. First semester, programming course. Write a life-essential

Re: What do people here use as an IDE?

2017-11-17 Thread Tony via Digitalmars-d
On Friday, 17 November 2017 at 14:57:52 UTC, Stas wrote: I use and highly recommend Codelobster: http://www.codelobster.com But I would hope you don't recommend it for D language development. "Details of Codelobster: Our goal is to create product which would simplify and speed up to the

Re: Looking for a job in USA

2017-11-17 Thread Indigo via Digitalmars-d
On Wednesday, 15 November 2017 at 17:32:50 UTC, Satoshi wrote: Hi, as the title says, I'm looking for a job opportunity in the USA (H1B visa sponsorship required). I'm experienced Software Engineer with a demonstrated history of working in the security and investigations industry. Skilled

[Issue 9506] When using alias this, writeln modifies its argument

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9506 Steven Schveighoffer changed: What|Removed |Added Status|NEW |RESOLVED

Re: NIO+Multithreaded TCPSocket listener, very low cpu utilisation

2017-11-17 Thread kdevel via Digitalmars-d-learn
On Friday, 17 November 2017 at 14:28:38 UTC, kdevel wrote: On Thursday, 16 November 2017 at 19:37:31 UTC, ade90036 wrote: Can we enable some sort of profiling to see what is going on? You may compile the code with dmd -g -O -profile -profile=gc I currently struggle getting meaningful output.

Re: What do people here use as an IDE?

2017-11-17 Thread Stas via Digitalmars-d
I use and highly recommend Codelobster: http://www.codelobster.com

Call thread_attachThis() from your D shared library

2017-11-17 Thread Ali Çehreli via Digitalmars-d-learn
We had an issue today calling a D shared library from our Java code where we were getting segfaults during GC collection cycles. Of course we were being careful and calling Runtime.initialize() inside our initialization function, which is called from the Java side: extern (C) auto

[Issue 17096] many traits accept an invalid parameter count without error

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17096 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/30e01ba7969ede07e0428132dfbdda9d3ddbe80e Fix issue 17096 - Check the number of arguments given to

Re: Note from a donor

2017-11-17 Thread MrSmith via Digitalmars-d
On Friday, 17 November 2017 at 23:31:07 UTC, David Nadlinger wrote: The more promising avenue would probably be to distribute LLD with DMD. This still leaves the system library licensing to deal with, but if I remember correctly, one of the usual suspects (Rainer? Vladimir?) was working on

Re: DConf 2018 Logo

2017-11-17 Thread notna via Digitalmars-d
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu wrote: Hello, for all of you with expertise in graphics, we'd be in your debt if you could create a logo for DConf 2018. Proposals would be appreciated! Thanks, Andrei If you really want to use a new logo, which fits to

Russian AI Cup 2017 - D language support

2017-11-17 Thread Ivan Kazmenko via Digitalmars-d-announce
Hi! Russian AI Cup (http://russianaicup.ru) is an annual online AI programming competition by Mail.Ru Group. This year, the task is to write a bot which plays a real-time strategy against other programmer's bots. The competition runs from November 13 to December 24, 2017, and the first

Re: Russian AI Cup 2017 - D language support

2017-11-17 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/17/17 5:47 PM, Ivan Kazmenko wrote: Hi! Russian AI Cup (http://russianaicup.ru) is an annual online AI programming competition by Mail.Ru Group.  This year, the task is to write a bot which plays a real-time strategy against other programmer's bots.  The competition runs from November

Re: DConf 2018 Logo

2017-11-17 Thread user1234 via Digitalmars-d
On Thursday, 16 November 2017 at 23:03:10 UTC, H. S. Teoh wrote: On Thu, Nov 16, 2017 at 08:21:41PM +, user1234 via Digitalmars-d wrote: On Thursday, 16 November 2017 at 14:11:22 UTC, Dukc wrote: > On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei > Alexandrescu wrote: > > Hello, for

Re: What do people here use as an IDE?

2017-11-17 Thread user1234 via Digitalmars-d
On Friday, 17 November 2017 at 14:57:52 UTC, Stas wrote: I use and highly recommend Codelobster: http://www.codelobster.com https://s3.amazonaws.com/EarthwatchMedia/GalleryImages/unearthing-ancient-history-in-tuscany-c.-archeodig-h1_2196.jpg

Re: Note from a donor

2017-11-17 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 17 November 2017 at 23:31:07 UTC, David Nadlinger wrote: The more promising avenue would probably be to distribute LLD This still leaves the system library licensing to deal with, but if I remember correctly, one of the usual suspects (Rainer? Vladimir?) was working on generating

[Issue 5710] cannot use delegates as parameters to non-global template

2017-11-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5710 calex changed: What|Removed |Added CC|

Re: Note from a donor

2017-11-17 Thread David Nadlinger via Digitalmars-d
On Friday, 17 November 2017 at 02:01:41 UTC, solidstate1991 wrote: It's filled with Assembly code, and otherwise not very readable. Would need a lot of work, I don't think it would worth it. Let's hope that MS will allow us to distribute a linker alongside DMD. The more promising avenue

Re: DConf 2018 Logo

2017-11-17 Thread Ali Çehreli via Digitalmars-d
On 11/17/2017 02:50 PM, user1234 wrote: > On Thursday, 16 November 2017 at 23:03:10 UTC, H. S. Teoh wrote: >> On Thu, Nov 16, 2017 at 08:21:41PM +, user1234 via Digitalmars-d >> wrote: >>> On Thursday, 16 November 2017 at 14:11:22 UTC, Dukc wrote: >>> > On Wednesday, 15 November 2017 at

Silicon Valley D Meetup - November 30, 2017 - "DCompute: Harnessing all your hardware" by Nicholas Wilson

2017-11-17 Thread Ali Çehreli via Digitalmars-d-announce
We're very fortunate to have Nic as our speaker this month. He will be connecting remotely. We will announce the Google Hangouts link later so that you can join as well. "DCompute is a set of libraries designed to work with ldc to enable native execution of regular D code on GPUs (and other

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread codephantom via Digitalmars-d
On Friday, 17 November 2017 at 12:18:47 UTC, Atila Neves wrote: That's the whole point of using a safe language, otherwise we'd be fine with C. Personally, I would prefer to teach new students to program in C first - precisely because it's an unsafe language - or at least, can be used

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread codephantom via Digitalmars-d
On Friday, 17 November 2017 at 14:53:40 UTC, Jonathan M Davis wrote: Regardless, given that dereferencing null will segfault, it does not present an @safety problem. "A notion of safety is always relative to some criterion". If your code dereferences a null pointer, and the program

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 18 November 2017 at 03:33:00 UTC, codephantom wrote: If your code dereferences a null pointer, and the program segfaults, and that program is supplying me with the oxygen i need to survive...then its probably not safe ;-) If you have a life-essential system that can't survive a

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread codephantom via Digitalmars-d
On Friday, 17 November 2017 at 15:27:06 UTC, Jesse Phillips wrote: It is interesting that you mention this. Our product manager was talking to our senior developer about this very thing. He explained that it was a method of development that an employee at his previous company came up with at

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Walter Bright via Digitalmars-d
On 11/17/2017 6:05 AM, Timon Gehr wrote: There are type systems that do that, which is what is being proposed for C#. It's pretty straightforward: If I have a variable of class reference type C, it actually contains a reference to a class instance of type C. One of the difficulties with this

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Walter Bright via Digitalmars-d
On 11/16/2017 5:47 PM, Michael V. Franklin wrote: the lack of any warning or error for this trivial case surprised me. Consider the following code: void test() { int* p; *p = 3; } Compiling it with -O gives: Error: null dereference in function _D5test54testFNaZv The -O is