Re: CTFE Status 2

2017-05-03 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 3 May 2017 at 04:22:00 UTC, Stefan Koch wrote: On Tuesday, 2 May 2017 at 22:08:31 UTC, Moritz Maxeiner wrote: [...] Using TCP would just remove any potential future headache from the equation. I think any ordering should be done explicitly at the debugging protocol level. for

Re: See you soon at dconf

2017-05-03 Thread Bastiaan Veelo via Digitalmars-d
On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hi, I am very happy to see you soon at dconf. Likewise! I am at the airport as I type. Bastiaan.

Why does this compile (method in class without return type)

2017-05-03 Thread nkm1 via Digitalmars-d-learn
Consider: import std.stdio; class A { final print() { writeln(this); } // no return type } class B : A { final void print() { writeln(this); } } void main() { auto b = new B; b.print(); A a1 = b; a1.print(); A a2 = new A; a2.print(); } That compiles: $ dmd

Re: See you soon at dconf

2017-05-03 Thread Rene Zwanenburg via Digitalmars-d
On Wednesday, 3 May 2017 at 15:05:02 UTC, Bastiaan Veelo wrote: On Wednesday, 3 May 2017 at 14:38:41 UTC, Rene Zwanenburg wrote: On Wednesday, 3 May 2017 at 13:36:45 UTC, Steven Schveighoffer wrote: I am at the Ludwig van Beethoven hotel. Just had a 2 hour nap, couldn't sleep on the plane. So

Re: See you soon at dconf

2017-05-03 Thread Steven Schveighoffer via Digitalmars-d
On 5/3/17 5:42 PM, Nemanja Boric wrote: On Wednesday, 3 May 2017 at 15:05:02 UTC, Bastiaan Veelo wrote: On Wednesday, 3 May 2017 at 14:38:41 UTC, Rene Zwanenburg wrote: On Wednesday, 3 May 2017 at 13:36:45 UTC, Steven Schveighoffer wrote: I am at the Ludwig van Beethoven hotel. Just had a 2

Re: DIP 1004 Preliminary Review Round 1

2017-05-03 Thread Andrej Mitrovic via Digitalmars-d
On Wednesday, 3 May 2017 at 12:58:17 UTC, Daniel N wrote: The trick is that your child class need to have defined at least 1 constructor before the alias. This should work: this() {} alias __ctor = super.__ctor; This will give the error message you saw: alias __ctor = super.__ctor; this() {}

Re: See you soon at dconf

2017-05-03 Thread Nemanja Boric via Digitalmars-d
On Wednesday, 3 May 2017 at 15:05:02 UTC, Bastiaan Veelo wrote: On Wednesday, 3 May 2017 at 14:38:41 UTC, Rene Zwanenburg wrote: On Wednesday, 3 May 2017 at 13:36:45 UTC, Steven Schveighoffer wrote: I am at the Ludwig van Beethoven hotel. Just had a 2 hour nap, couldn't sleep on the plane. So

Ibis Hotel Back Room

2017-05-03 Thread Mike Parker via Digitalmars-d-announce
If you come into the Ibis, we are all kicked out of the lobby for being too loud. Just ho through the lobby to the back and you'll find us.

Re: See you soon at dconf

2017-05-03 Thread Bastiaan Veelo via Digitalmars-d
On Wednesday, 3 May 2017 at 14:38:41 UTC, Rene Zwanenburg wrote: On Wednesday, 3 May 2017 at 13:36:45 UTC, Steven Schveighoffer wrote: I am at the Ludwig van Beethoven hotel. Just had a 2 hour nap, couldn't sleep on the plane. So a few beers will do me well (first of which I'm having now ;).

[Issue 17361] latest windows 10 insider preview and dmd no longer runs.

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17361 --- Comment #3 from steven kladitis --- 1703, build 16184.101. I sent Microsoft a note asking to figure it out. --

Re: See you soon at dconf

2017-05-03 Thread Bastiaan Veelo via Digitalmars-d
On Wednesday, 3 May 2017 at 15:42:18 UTC, Nemanja Boric wrote: I might be wrong, but it's 6 stops for the Bus/Tram drive, and only three for the U/S Bahn drive: Einzelfahrausweise für Kurzstrecken gelten im Tarifbereich Berlin (AB,BC,ABC) für bis zu drei Stationen mit der S-Bahn, U-Bahn oder

Re: CTFE Status 2

2017-05-03 Thread Minty Fresh via Digitalmars-d
On Wednesday, 3 May 2017 at 07:35:56 UTC, Stefan Koch wrote: On Wednesday, 3 May 2017 at 06:10:22 UTC, Adrian Matoga wrote: So you're going to reinvent TCP in your debugging protocol? No. there is no need for a full blown recovery mechanism. For the typical usecase a lossless orderd

Re: See you soon at dconf

2017-05-03 Thread Steven Schveighoffer via Digitalmars-d
On Wednesday, 3 May 2017 at 13:14:01 UTC, Bastiaan Veelo wrote: On Wednesday, 3 May 2017 at 07:29:27 UTC, Stefan Koch wrote: On Wednesday, 3 May 2017 at 06:45:05 UTC, Bastiaan Veelo wrote: On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hi, I am very happy to see you soon at dconf.

Re: dubs: Getting into the Node scripts market

2017-05-03 Thread Sönke Ludwig via Digitalmars-d
Am 03.05.2017 um 12:54 schrieb Andre Pany: Hi, it would be great if we can position D as replacement of Node scripts. With the --single argument of Dub we have almost everything we need in this scenario. But one thing is very odd. If you want to execute the app.d source file with dub you have

Re: DIP 1004 Preliminary Review Round 1

2017-05-03 Thread Andrej Mitrovic via Digitalmars-d
On Wednesday, 3 May 2017 at 09:13:54 UTC, Daniel N wrote: However I oppose the other part of the DIP since it's already possible today. class FileException : Exception { this(ErrorCode error_code, string file = __FILE__, uint line = __LINE__ ) { super("FileNotFound", file,

Re: CTFE Status 2

2017-05-03 Thread Adrian Matoga via Digitalmars-d
On Sunday, 30 April 2017 at 19:52:27 UTC, H. S. Teoh wrote: On Sun, Apr 30, 2017 at 01:26:09PM +, Stefan Koch via Digitalmars-d wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: > [ ... ] Big news! The first step to include debug info has been done. Yes this means

Re: See you soon at dconf

2017-05-03 Thread Bastiaan Veelo via Digitalmars-d
On Wednesday, 3 May 2017 at 07:42:51 UTC, Luís Marques wrote: Can anyone get me a phillips screwdriver? Seriously. I'll be at the official hotel or you can lend me one tomorrow morning at the conference. I have asked Shai Tayeb here, Event Manager, and he will bring one tomorrow.

visibility deprecation with last dmd compiler

2017-05-03 Thread jacob via Digitalmars-d-learn
I have 2 files file abc.d: == module my.abc; class Abc { private int x; this() { this.x = 1; } } == and xyz.d: == module my.xyz; import my.abc; class Xyz: Abc { this() { super(); this.x = 2; } } == Compilation fails with "Deprecation: my.abc.Abc.x is not visible from module xyz"

Re: [OT] Algorithm question

2017-05-03 Thread MysticZach via Digitalmars-d
On Tuesday, 2 May 2017 at 23:09:54 UTC, MysticZach wrote: On Tuesday, 2 May 2017 at 21:00:36 UTC, Timon Gehr wrote: On 02.05.2017 22:42, MysticZach wrote: On Tuesday, 2 May 2017 at 13:44:03 UTC, MysticZach wrote: for (;;) { if (P(a[i])) return i; ++count; if

Re: See you soon at dconf

2017-05-03 Thread Bastiaan Veelo via Digitalmars-d
On Wednesday, 3 May 2017 at 13:36:45 UTC, Steven Schveighoffer wrote: (first of which I'm having now ;). Where were you thinking to meet? If there's beer where you are, I can get to you. 20 min.

Re: The .obj file, what is it?

2017-05-03 Thread Adam D. Ruppe via Digitalmars-d-learn
Basically, .obj is a temporary file the compiler uses to store its half-finished work on the way to producing the exe. Once you have the exe, the obj is no longer necessary, but keeping them around can sometimes speed up recompiles by reusing the left over work from last time. (Not so much in

Re: DIP 1004 Preliminary Review Round 1

2017-05-03 Thread Daniel N via Digitalmars-d
On Wednesday, 3 May 2017 at 12:46:19 UTC, Andrej Mitrovic wrote: On Wednesday, 3 May 2017 at 09:13:54 UTC, Daniel N wrote: However I oppose the other part of the DIP since it's already possible today. class FileException : Exception { this(ErrorCode error_code, string file = __FILE__,

[Issue 17366] Inferrence results in a missing error for final

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17366 --- Comment #3 from Adam D. Ruppe --- My guess is that func.d's findVtblIndex function fails to find the base class method because `type.equals` and `type.covariant` fail to take into account inference. Looking at

Re: dubs: Getting into the Node scripts market

2017-05-03 Thread Andre Pany via Digitalmars-d
On Wednesday, 3 May 2017 at 12:16:30 UTC, rikki cattermole wrote: Actually there is a special syntax that is also used for shebang style scripts: `dub app.d arg1 arg2` is equivalent to `dub --quiet --temp-build --single app.d -- arg1 arg2`. It seems like the command line help wasn't really

Re: COM Expertise needed: COM Callbacks

2017-05-03 Thread Mike B Johnson via Digitalmars-d-learn
On Friday, 28 April 2017 at 09:25:31 UTC, John Chapman wrote: On Thursday, 27 April 2017 at 20:20:23 UTC, Nierjerson wrote: I think the main issue though, is that I really don't know what is going on when I invoke the PS function. It seems to call the server method that takes the interface

Re: See you soon at dconf

2017-05-03 Thread Rene Zwanenburg via Digitalmars-d
On Wednesday, 3 May 2017 at 13:50:53 UTC, Bastiaan Veelo wrote: On Wednesday, 3 May 2017 at 13:36:45 UTC, Steven Schveighoffer wrote: (first of which I'm having now ;). Where were you thinking to meet? If there's beer where you are, I can get to you. 20 min. I'm also staying at the

Re: visibility deprecation with last dmd compiler

2017-05-03 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 14:14:16 UTC, jacob wrote: But how can I use private fields from descedant class? You don't, the whole point of private is that they aren't used from outside the module. Try `protected` instead, it is similar to private, but still allows use from a subclass.

Re: Blog post on automem

2017-05-03 Thread ANtlord via Digitalmars-d-announce
On Friday, 28 April 2017 at 14:40:03 UTC, Mike Parker wrote: Atila was kind enough to do a write up on his automem library for the D Blog, talking about why he did it and showing some of the implementation details. This is officially part of the GC series. The next post in the series will be

Re: See you soon at dconf

2017-05-03 Thread Bastiaan Veelo via Digitalmars-d
On Wednesday, 3 May 2017 at 07:29:27 UTC, Stefan Koch wrote: On Wednesday, 3 May 2017 at 06:45:05 UTC, Bastiaan Veelo wrote: On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hi, I am very happy to see you soon at dconf. Likewise! I am at the airport as I type. Bastiaan. are you

Re: dubs: Getting into the Node scripts market

2017-05-03 Thread rikki cattermole via Digitalmars-d
On 03/05/2017 1:13 PM, Sönke Ludwig wrote: Am 03.05.2017 um 12:54 schrieb Andre Pany: Hi, it would be great if we can position D as replacement of Node scripts. With the --single argument of Dub we have almost everything we need in this scenario. But one thing is very odd. If you want to

[Issue 17366] Inferrence results in a missing error for final

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17366 Adam D. Ruppe changed: What|Removed |Added CC|

Re: Blog post on automem

2017-05-03 Thread ag0aep6g via Digitalmars-d-announce
On 05/03/2017 01:05 PM, ANtlord wrote: As far as I know a delegate depends on GC. Closures depend on the GC. Not all delegates involve closures. For example, you don't need the GC to make a delegate of a method: struct S { int x = 0; void m() @nogc { x = 1; } } void main()

Re: Why does this compile (method in class without return type)

2017-05-03 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 07:37:31 UTC, Jacob Carlborg wrote: It might be by accident but I think the compiler is inferring the return type. Just as "auto" is not necessary to infer the type of a variable if there's another attribute: No accident there, the spec says any storage class will

Re: See you soon at dconf

2017-05-03 Thread Rene Zwanenburg via Digitalmars-d
On Wednesday, 3 May 2017 at 13:36:45 UTC, Steven Schveighoffer wrote: I am at the Ludwig van Beethoven hotel. Just had a 2 hour nap, couldn't sleep on the plane. So a few beers will do me well (first of which I'm having now ;). Where were you thinking to meet? -Steve Are you still at the

Re: CTFE Status 2

2017-05-03 Thread Moritz Maxeiner via Digitalmars-d
On Wednesday, 3 May 2017 at 04:22:00 UTC, Stefan Koch wrote: [...] I think any ordering should be done explicitly at the debugging protocol level. for example when sending sourceline messages the order is given by the line number and ordering can be done by the application. It's the same for

Re: CTFE Status 2

2017-05-03 Thread Moritz Maxeiner via Digitalmars-d
On Wednesday, 3 May 2017 at 07:35:56 UTC, Stefan Koch wrote: For the typical usecase a lossless orderd connection can be assumed. - udp is not connection oriented, i.e. there is no connection - udp is not lossless and pretending it is means setting yourself up for a headache down the road -

Re: See you soon at dconf

2017-05-03 Thread Ethan Watson via Digitalmars-d
On Wednesday, 3 May 2017 at 09:04:31 UTC, John Colvin wrote: I'm guessing everyone will be converging on the conference hotel as the day goes on? I imagine I'll wander by there. I'm not staying there, but it is a quick walk to my accommodation. I land at 20.45 though, so I hope it's still

Re: See you soon at dconf

2017-05-03 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 3 May 2017 at 07:42:51 UTC, Luís Marques wrote: On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hi, I am very happy to see you soon at dconf. And I apologize in advance for my nearly slideless talk. Hope this time there is dmd on the machine! Cheers Stefan Well, I

Re: See you soon at dconf

2017-05-03 Thread Luís Marques via Digitalmars-d
On Wednesday, 3 May 2017 at 13:28:50 UTC, Bastiaan Veelo wrote: On Wednesday, 3 May 2017 at 07:42:51 UTC, Luís Marques wrote: Can anyone get me a phillips screwdriver? Seriously. I'll be at the official hotel or you can lend me one tomorrow morning at the conference. I have asked Shai Tayeb

Re: How to check if object is an instance of generic class?

2017-05-03 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, May 03, 2017 at 08:04:20PM +0200, ag0aep6g via Digitalmars-d-learn wrote: > On 05/03/2017 07:26 PM, Nothing wrote: [...] > > So is there an idiomatic approach to know if the Object is an > > instance of Box (regardless of content type T) and than if necessary > > to know exactly if two

Re: How to check if object is an instance of generic class?

2017-05-03 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, May 03, 2017 at 05:26:27PM +, Nothing via Digitalmars-d-learn wrote: > Hi, Honestly I am new to D and templates system so excuse me if my > question will seem trivial. > > I want to develop a generic Box(T) class that can be either empty or > hold a value of arbitrary type T. Have a

Re: How to check if object is an instance of generic class?

2017-05-03 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, May 03, 2017 at 08:24:31PM +0200, ag0aep6g via Digitalmars-d-learn wrote: > On 05/03/2017 08:04 PM, H. S. Teoh via Digitalmars-d-learn wrote: > > You only need a common interface if you wish to do something more > > with Box!X instantiations that's common across all Boxes. > > The goal

Productive vibe.d dev environment (IDE, debugger) on Linux?

2017-05-03 Thread kinke via Digitalmars-d-learn
Hey guys, can anyone recommend a more or less production-ready dev environment for vibe.d on Linux? I'm evaluating vibe.d against Phoenix (Elixir/Erlang) for a new project. Today I gave Visual Studio Code a quick shot (with LDC 1.1.1 and DMD 2.071/72/74), with Webfreak's plugins, but I'm not

Re: How to check if object is an instance of generic class?

2017-05-03 Thread ag0aep6g via Digitalmars-d-learn
On 05/03/2017 07:26 PM, Nothing wrote: Equality checking is where I stuck. It should work as follows: 0. If we compare the Box [b]b[/b] to an object [b]o[/b] that is not an instance of Box, it should return false. 1. Empty boxes are equal no matter the type. 2. If type of payload for two boxes

Re: How to check if object is an instance of generic class?

2017-05-03 Thread ag0aep6g via Digitalmars-d-learn
On 05/03/2017 08:04 PM, H. S. Teoh via Digitalmars-d-learn wrote: You only need a common interface if you wish to do something more with Box!X instantiations that's common across all Boxes. The goal is to return `true` for two empty boxes with different payload types. From the OP: "Empty

Re: DIP 1004 Preliminary Review Round 1

2017-05-03 Thread Mike Wey via Digitalmars-d
On 05/03/2017 05:09 PM, Andrej Mitrovic wrote: On Wednesday, 3 May 2017 at 12:58:17 UTC, Daniel N wrote: The trick is that your child class need to have defined at least 1 constructor before the alias. This should work: this() {} alias __ctor = super.__ctor; This will give the error message

Re: The D ecosystem in Debian with free-as-in-freedom DMD

2017-05-03 Thread Marco Leise via Digitalmars-d
Am Wed, 03 May 2017 01:02:38 + schrieb Moritz Maxeiner : > On Tuesday, 2 May 2017 at 23:27:28 UTC, Marco Leise wrote: > > Am Tue, 02 May 2017 20:53:50 + > > schrieb Moritz Maxeiner : > > > >> On Tuesday, 2 May 2017 at 19:34:44 UTC, Marco Leise

How to check if object is an instance of generic class?

2017-05-03 Thread Nothing via Digitalmars-d-learn
Hi, Honestly I am new to D and templates system so excuse me if my question will seem trivial. I want to develop a generic Box(T) class that can be either empty or hold a value of arbitrary type T. // class Box(T) { override bool opEquals(Object o) { //...

Re: DIP 1004 Preliminary Review Round 1

2017-05-03 Thread Daniel N via Digitalmars-d
On Wednesday, 3 May 2017 at 15:09:03 UTC, Andrej Mitrovic wrote: On Wednesday, 3 May 2017 at 12:58:17 UTC, Daniel N wrote: The trick is that your child class need to have defined at least 1 constructor before the alias. This should work: this() {} alias __ctor = super.__ctor; This will give

Re: multiple `alias this` suggestion

2017-05-03 Thread Daniel N via Digitalmars-d
On Wednesday, 3 May 2017 at 19:41:58 UTC, Daniel N wrote: On Saturday, 29 April 2017 at 23:57:07 UTC, Carl Sturtivant wrote: On Thursday, 27 April 2017 at 05:41:43 UTC, Daniel N wrote: Even better, with alias for embedded aliased-to-this structs made working usefully, name management can be

[Issue 17363] @safety hole due to $ caching in slice expressions

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17363 --- Comment #2 from ki...@gmx.net --- > The slice should be loaded before evaluation of slice arguments, then length > is safe to cache, see issue 17364. Your argument for loading & caching length and pointer before evaluating the bounds expressions

Re: How to check if object is an instance of generic class?

2017-05-03 Thread Nothing via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 17:54:13 UTC, H. S. Teoh wrote: On Wed, May 03, 2017 at 05:26:27PM +, Nothing via Digitalmars-d-learn wrote: Hi, Honestly I am new to D and templates system so excuse me But of course, if you wish to write your own Box type, then to answer your question: [...]

Re: multiple `alias this` suggestion

2017-05-03 Thread Daniel N via Digitalmars-d
On Saturday, 29 April 2017 at 23:57:07 UTC, Carl Sturtivant wrote: On Thursday, 27 April 2017 at 05:41:43 UTC, Daniel N wrote: Even better, with alias for embedded aliased-to-this structs made working usefully, name management can be done before embedding the features, by having another layer

Re: See you soon at dconf

2017-05-03 Thread Steven Schveighoffer via Digitalmars-d
On 5/3/17 5:05 PM, Bastiaan Veelo wrote: On Wednesday, 3 May 2017 at 14:38:41 UTC, Rene Zwanenburg wrote: On Wednesday, 3 May 2017 at 13:36:45 UTC, Steven Schveighoffer wrote: I am at the Ludwig van Beethoven hotel. Just had a 2 hour nap, couldn't sleep on the plane. So a few beers will do me

Release dwtlib v3 for use with DMD 2.074.0

2017-05-03 Thread JamesD via Digitalmars-d-dwt
dwtlib - DUB package for the D Widget Toolkit https://code.dlang.org/packages/dwtlib DWT is a library for creating cross-platform GUI applications. It's a port of the SWT Java library from Eclipse. WORKING and tested on: - Windows 10 Home 32-bit and 64-bit - Ubuntu 16.04 LTS

Re: Equivalent to nullptr

2017-05-03 Thread Leonardo via Digitalmars-d-learn
On Thursday, 4 May 2017 at 02:45:30 UTC, Adam D. Ruppe wrote: On Thursday, 4 May 2017 at 02:12:13 UTC, Leonardo wrote: nullptr word. How I use this? Does it work if you just use `null` ? No. First I got: source/app.d(45,69): Error: expression (*SDL_EnclosePoints)(& mousePos, 1, , null) of

Re: Equivalent to nullptr

2017-05-03 Thread Stanislav Blinov via Digitalmars-d-learn
On Thursday, 4 May 2017 at 03:59:36 UTC, Leonardo wrote: On Thursday, 4 May 2017 at 02:45:30 UTC, Adam D. Ruppe wrote: On Thursday, 4 May 2017 at 02:12:13 UTC, Leonardo wrote: nullptr word. How I use this? Does it work if you just use `null` ? No. First I got: source/app.d(45,69): Error:

Equivalent to nullptr

2017-05-03 Thread Leonardo via Digitalmars-d-learn
I was trying to use Derelict-SDL2 library, and the tutorial do this code below, as C++ code has nullptr word. How I use this? - struct Ball { SDL_Rect bbox = {0, 0, 100, 100}; SDL_Point vel = {1, 1}; } - case

Re: Equivalent to nullptr

2017-05-03 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 4 May 2017 at 02:12:13 UTC, Leonardo wrote: nullptr word. How I use this? Does it work if you just use `null` ?

Re: Why does this compile (method in class without return type)

2017-05-03 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-05-03 08:54, nkm1 wrote: Consider: import std.stdio; class A { final print() { writeln(this); } // no return type } class B : A { final void print() { writeln(this); } } void main() { auto b = new B; b.print(); A a1 = b; a1.print(); A a2 = new A;

[Issue 17366] New: Inferrence results in a missing error for final

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17366 Issue ID: 17366 Summary: Inferrence results in a missing error for final Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

[Issue 17366] Inferrence results in a missing error for final

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17366 Jonathan M Davis changed: What|Removed |Added Keywords|

Re: DIP 1004 Preliminary Review Round 1

2017-05-03 Thread Daniel N via Digitalmars-d
On Tuesday, 2 May 2017 at 18:02:15 UTC, Adam D. Ruppe wrote: On Tuesday, 2 May 2017 at 09:03:27 UTC, deadalnix wrote: 100% in favor of the constructor behavior change in case no constructor is in the derived class. I agree. So do I. However I oppose the other part of the DIP since it's

Re: See you soon at dconf

2017-05-03 Thread Stefan Koch via Digitalmars-d
On Wednesday, 3 May 2017 at 06:45:05 UTC, Bastiaan Veelo wrote: On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hi, I am very happy to see you soon at dconf. Likewise! I am at the airport as I type. Bastiaan. are you in Berlin already ? I am going to arrive near 19:00. Anyone up

Re: See you soon at dconf

2017-05-03 Thread Luís Marques via Digitalmars-d
On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hi, I am very happy to see you soon at dconf. And I apologize in advance for my nearly slideless talk. Hope this time there is dmd on the machine! Cheers Stefan Well, I have too many. Want some? Can anyone get me a phillips

[Issue 17366] Inferrence results in a missing error for final

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17366 Daniel Kozak changed: What|Removed |Added CC||kozz...@gmail.com ---

Re: D and SCons

2017-05-03 Thread Russel Winder via Digitalmars-d
On Tue, 2017-05-02 at 15:39 -0700, H. S. Teoh via Digitalmars-d wrote: > […] > However, I have to confess that I found Russel's D tooling (the last > time I tried it anyway, which was a while back) not quite up to what > I'd > like it to do. As a result, in my recent projects I've resorted >

Re: D and SCons

2017-05-03 Thread Russel Winder via Digitalmars-d
On Wed, 2017-05-03 at 00:05 +0200, Dmitry Olshansky via Digitalmars-d wrote: > […] > I've come to like SCons for my C++ projects. Way more so than say > CMake. > It would be awesome to have full-fledged support for D there esp. in  > mixed C++ with D setup. I had been using SCons, SConsolidator,

Re: Why does this compile (method in class without return type)

2017-05-03 Thread Daniel Kozák via Digitalmars-d-learn
V Wed, 03 May 2017 06:54:15 + nkm1 via Digitalmars-d-learn napsáno: > Consider: > > import std.stdio; > > class A > { > final print() { writeln(this); } // no return type > } > > class B : A > { > final void print() { writeln(this); } > } > >

Re: CTFE Status 2

2017-05-03 Thread Stefan Koch via Digitalmars-d
On Wednesday, 3 May 2017 at 06:10:22 UTC, Adrian Matoga wrote: So you're going to reinvent TCP in your debugging protocol? No. there is no need for a full blown recovery mechanism. For the typical usecase a lossless orderd connection can be assumed. And most things are not order dependent

Re: Why does this compile (method in class without return type)

2017-05-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 07:37:31 UTC, Jacob Carlborg wrote: It might be by accident but I think the compiler is inferring the return type. Just as "auto" is not necessary to infer the type of a variable if there's another attribute: auto a = 3; const auto b = 4; // here "auto" is

Re: Why does this compile (method in class without return type)

2017-05-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 08:10:04 UTC, Jonathan M Davis wrote: So, I'd say that there's definitely a bug here. https://issues.dlang.org/show_bug.cgi?id=17366

Re: alias can't find symbol or can't use symbol

2017-05-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, 30 April 2017 at 00:17:37 UTC, Carl Sturtivant wrote: Consider the following. struct member { int n; } struct outer { member x; alias x this; alias n2 = n; } This does not compile: alias n2 = n; Error: undefined identifier 'n' That makes perfect sense, as n is not

Re: CTFE Status 2

2017-05-03 Thread Kagamin via Digitalmars-d
An article about LLVM jit: https://webkit.org/blog/5852/introducing-the-b3-jit-compiler/

Re: CTFE Status 2

2017-05-03 Thread Nordlöw via Digitalmars-d
On Wednesday, 3 May 2017 at 07:35:56 UTC, Stefan Koch wrote: On Wednesday, 3 May 2017 at 06:10:22 UTC, Adrian Matoga wrote: So you're going to reinvent TCP in your debugging protocol? No. there is no need for a full blown recovery mechanism. For the typical usecase a lossless orderd

Re: Why does this compile (method in class without return type)

2017-05-03 Thread nkm1 via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 06:54:15 UTC, nkm1 wrote: final method type inference stuff Jacob and Jonathan - thank you, this is clear to me now. Hopefully it will get fixed at some point.

Re: CTFE Status 2

2017-05-03 Thread Swoorup Joshi via Digitalmars-d
On Sunday, 30 April 2017 at 13:26:09 UTC, Stefan Koch wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Big news! The first step to include debug info has been done. Yes this means you will be able to step through ctfe code while the compiler executes it.

Re: See you soon at dconf

2017-05-03 Thread John Colvin via Digitalmars-d
On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hi, I am very happy to see you soon at dconf. And I apologize in advance for my nearly slideless talk. Hope this time there is dmd on the machine! Cheers Stefan I'm guessing everyone will be converging on the conference hotel as

Re: See you soon at dconf

2017-05-03 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, 3 May 2017 at 09:04:31 UTC, John Colvin wrote: On Tuesday, 2 May 2017 at 20:19:02 UTC, Stefan Koch wrote: Hi, I am very happy to see you soon at dconf. And I apologize in advance for my nearly slideless talk. Hope this time there is dmd on the machine! Cheers Stefan I'm

dubs: Getting into the Node scripts market

2017-05-03 Thread Andre Pany via Digitalmars-d
Hi, it would be great if we can position D as replacement of Node scripts. With the --single argument of Dub we have almost everything we need in this scenario. But one thing is very odd. If you want to execute the app.d source file with dub you have to write: dub --single app.d - You

The .obj file, what is it?

2017-05-03 Thread I Lindström via Digitalmars-d-learn
So, a question from a beginner. What is the .obj file that appears after the source is compiled into the executable? I can't find a good explanation on the Net for it. I take it the file has to accompany the executable for the program to function since the online explanations I've found say it

[Issue 17364] Difference between slicing a slice and a reference to a slice

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17364 --- Comment #3 from anonymous4 --- (In reply to kinke from comment #2) > but *when* the loads happen is clearly crucial That's the loading I talk about. --

Re: Why does this compile (method in class without return type)

2017-05-03 Thread Daniel Kozák via Digitalmars-d-learn
V Wed, 03 May 2017 09:21:47 + nkm1 via Digitalmars-d-learn napsáno: > On Wednesday, 3 May 2017 at 07:34:03 UTC, Daniel Kozák wrote: > > > > print in A is template: > > > > What :) > How does it interact with 'final'? hmm obviously it is problem only

[Issue 17367] New: CodeView/MSCOFF: bad debug information for enumerators

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17367 Issue ID: 17367 Summary: CodeView/MSCOFF: bad debug information for enumerators Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Keywords:

[Issue 17363] @safety hole due to $ caching in slice expressions

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17363 anonymous4 changed: What|Removed |Added See Also|

Re: Why does this compile (method in class without return type)

2017-05-03 Thread nkm1 via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 07:34:03 UTC, Daniel Kozák wrote: print in A is template: What :) How does it interact with 'final'?

D IDE Coedit - released version 3 update 1

2017-05-03 Thread Basile B. via Digitalmars-d-announce
Hello, The latest major release does not contain any critical issue known at this day so this is a minor update that brings a few improvements mostly related to the edition: DDOC and completion (including an automatic mode, as suggested many times after latest release). - Changelog and

Re: CTFE Status 2

2017-05-03 Thread Stefan Koch via Digitalmars-d
On Wednesday, 3 May 2017 at 08:23:54 UTC, Nordlöw wrote: On Wednesday, 3 May 2017 at 07:35:56 UTC, Stefan Koch wrote: On Wednesday, 3 May 2017 at 06:10:22 UTC, Adrian Matoga wrote: So you're going to reinvent TCP in your debugging protocol? No. there is no need for a full blown recovery

[Issue 17364] Difference between slicing a slice and a reference to a slice

2017-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17364 anonymous4 changed: What|Removed |Added See Also|

Re: Why does this compile (method in class without return type)

2017-05-03 Thread Daniel Kozák via Digitalmars-d-learn
V Wed, 03 May 2017 09:21:47 + nkm1 via Digitalmars-d-learn napsáno: > On Wednesday, 3 May 2017 at 07:34:03 UTC, Daniel Kozák wrote: > > > > print in A is template: > > > > What :) > How does it interact with 'final'? final is not important here

Re: Why does this compile (method in class without return type)

2017-05-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 07:34:03 UTC, Daniel Kozák wrote: V Wed, 03 May 2017 06:54:15 + nkm1 via Digitalmars-d-learn napsáno: Consider: import std.stdio; class A { final print() { writeln(this); } // no return type } class B : A { final

Re: Why does this compile (method in class without return type)

2017-05-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 09:21:47 UTC, nkm1 wrote: On Wednesday, 3 May 2017 at 07:34:03 UTC, Daniel Kozák wrote: print in A is template: What :) How does it interact with 'final'? If it were a template (and it's not), then final would not be applicable, because templated functions

Re: Blog post on automem

2017-05-03 Thread ANtlord via Digitalmars-d-announce
On Friday, 28 April 2017 at 14:40:03 UTC, Mike Parker wrote: When I publish the next one, I'll add a page to the blog with each post in the series linked under two categories: 'GC Fundamentals' and 'Memory Management Strategies'. Atila's post sits squarely in the latter. If you have a

Re: The .obj file, what is it?

2017-05-03 Thread Stanislav Blinov via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 10:55:44 UTC, I Lindström wrote: So, a question from a beginner. What is the .obj file that appears after the source is compiled into the executable? I can't find a good explanation on the Net for it. I take it the file has to accompany the executable for the

Re: The .obj file, what is it?

2017-05-03 Thread I Lindström via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 11:09:33 UTC, Stanislav Blinov wrote: The source is not compiled into the executable. The source is compiled into a "object code", output into an "object file" - in this case, the .obj file. Afterwards, object files are linked by a linker (usually also taking

Re: Equivalent to nullptr

2017-05-03 Thread Stanislav Blinov via Digitalmars-d-learn
In the meantime, you can get around the issue by redeclaring the function with another name and loading it manually just after calling DerelictSDL2.load(): import derelict.sdl2.sdl; __gshared SDL_bool function (const(SDL_Point)*, int, const(SDL_Rect)*, SDL_Rect*) SDL_EnclosePoints_; void