Re: D in China?

2017-03-20 Thread Laeeth Isharc via Digitalmars-d
On Monday, 20 March 2017 at 17:42:38 UTC, kinke wrote: On Monday, 20 March 2017 at 12:44:32 UTC, Laeeth Isharc wrote: becoming more involved in the Chinese open-source community I thought we had left behind nations and borders in the open-source community. - Sorry, I couldn't resist. ;) Chi

Re: The delang is using merge instead of rebase/squash

2017-03-20 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 20 March 2017 at 12:25:22 UTC, deadalnix wrote: Because a picture is clearer than a thousand words: What this tells me is that the default way git-log presents history is not very useful. Consider this presentation of the same information: 08ae52d8 The Dlang Bot: Merge pull reque

Re: Annoying thing about auto ref function template

2017-03-20 Thread Jonathan M Davis via Digitalmars-d
On Monday, March 20, 2017 22:14:37 Yuxuan Shui via Digitalmars-d wrote: > On Monday, 20 March 2017 at 21:53:47 UTC, Jonathan M Davis wrote: > > On Monday, March 20, 2017 21:37:26 Yuxuan Shui via > > > > Digitalmars-d wrote: > >> [...] > > > > auto ref for non-templates would not be quite the same t

Re: Annoying thing about auto ref function template

2017-03-20 Thread Yuxuan Shui via Digitalmars-d
On Monday, 20 March 2017 at 21:53:47 UTC, Jonathan M Davis wrote: On Monday, March 20, 2017 21:37:26 Yuxuan Shui via Digitalmars-d wrote: [...] auto ref for non-templates would not be quite the same thing, and regardless, it wouldn't help any with explictly instantiating a template that had

Re: Annoying thing about auto ref function template

2017-03-20 Thread Jonathan M Davis via Digitalmars-d
On Monday, March 20, 2017 21:37:26 Yuxuan Shui via Digitalmars-d wrote: > On Monday, 20 March 2017 at 21:34:14 UTC, Yuxuan Shui wrote: > > On Monday, 20 March 2017 at 21:08:40 UTC, Jonathan M Davis > > > > wrote: > >> [...] > > > > This is a bit tedious because it requires you creating a new > > fu

Re: Annoying thing about auto ref function template

2017-03-20 Thread Yuxuan Shui via Digitalmars-d
On Monday, 20 March 2017 at 21:34:14 UTC, Yuxuan Shui wrote: On Monday, 20 March 2017 at 21:08:40 UTC, Jonathan M Davis wrote: [...] This is a bit tedious because it requires you creating a new function. Maybe we can create a template for that. But still, auto ref requires us to do things

Re: Annoying thing about auto ref function template

2017-03-20 Thread Yuxuan Shui via Digitalmars-d
On Monday, 20 March 2017 at 21:08:40 UTC, Jonathan M Davis wrote: On Monday, March 20, 2017 13:20:52 Jonathan M Davis via Digitalmars-d wrote: So, yes, this particular restriction can be annoying, but there is a good reason for the restriction (though the error message _is_ pretty bad), and I h

Re: Annoying thing about auto ref function template

2017-03-20 Thread Jonathan M Davis via Digitalmars-d
On Monday, March 20, 2017 13:20:52 Jonathan M Davis via Digitalmars-d wrote: > So, yes, this particular restriction can be annoying, but there is a good > reason for the restriction (though the error message _is_ pretty bad), and > I have no idea how we would fix the problem. After thinking about

Re: Non-conflicting derived class overload shadows base class method

2017-03-20 Thread Jonathan M Davis via Digitalmars-d
On Monday, March 20, 2017 20:13:12 Adam D. Ruppe via Digitalmars-d wrote: > On Monday, 20 March 2017 at 19:57:03 UTC, H. S. Teoh wrote: > > Is this a bug? > > No, that's intentional, you have to merge the overload sets with > alias, same as if you imported them from two separate modules. > > http:/

Re: Annoying thing about auto ref function template

2017-03-20 Thread Jonathan M Davis via Digitalmars-d
On Monday, March 20, 2017 19:49:03 Yuxuan Shui via Digitalmars-d wrote: > An auto ref function template should behave like a normal > function template, but it doesn't. > > You can fully instantiate a function template by specifying all > of its template parameters, but you can't do that with auto

Re: Non-conflicting derived class overload shadows base class method

2017-03-20 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 20 March 2017 at 19:57:03 UTC, H. S. Teoh wrote: Is this a bug? No, that's intentional, you have to merge the overload sets with alias, same as if you imported them from two separate modules. http://dlang.org/hijack.html

Non-conflicting derived class overload shadows base class method

2017-03-20 Thread H. S. Teoh via Digitalmars-d
Is this a bug? class A { int method(); } class B : A { override void method(int); } void main() { B b; b.method(123); // OK int x = b.method(); // NG } One

Re: Annoying thing about auto ref function template

2017-03-20 Thread Yuxuan Shui via Digitalmars-d
On Monday, 20 March 2017 at 19:49:03 UTC, Yuxuan Shui wrote: And you can't do that with an auto ref template, which makes them quite annoying. BTW, the error message you get when you try to do this, is not very helpful: 'auto' can only be used as part of 'auto ref' for template function p

Annoying thing about auto ref function template

2017-03-20 Thread Yuxuan Shui via Digitalmars-d
An auto ref function template should behave like a normal function template, but it doesn't. You can fully instantiate a function template by specifying all of its template parameters, but you can't do that with auto ref templates. The only way to instantiate an auto ref template is to call i

Re: Playing with Visual D's new mixed solution support

2017-03-20 Thread Rainer Schuetze via Digitalmars-d
On 19.03.2017 13:16, Mike Parker wrote: Every few years I do a little test to see how much effort it takes to get the ioquake3 [1] codebase set up in a way that I can replace bits of it with D implementations and compile it all together. Not because I plan to port the whole thing, but I'm peren

Re: The delang is using merge instead of rebase/squash

2017-03-20 Thread Martin Nowak via Digitalmars-d
On Monday, 20 March 2017 at 12:25:22 UTC, deadalnix wrote: In addition there are a bunch of practical issues with this way of doing things. First there is no given that any intermediate state is sound, or even builds at all. That makes it very hard to bissect anything. You bissect on master a

Re: D in China?

2017-03-20 Thread kinke via Digitalmars-d
On Monday, 20 March 2017 at 12:44:32 UTC, Laeeth Isharc wrote: becoming more involved in the Chinese open-source community I thought we had left behind nations and borders in the open-source community. - Sorry, I couldn't resist. ;)

Re: tour.dlang.org is down

2017-03-20 Thread Meta via Digitalmars-d
On Monday, 20 March 2017 at 12:58:17 UTC, André wrote: On Sunday, 19 March 2017 at 08:28:41 UTC, Seb wrote: On Sunday, 19 March 2017 at 04:53:36 UTC, Meta wrote: Just posting to let people know that tour.dlang.org is currently down. I tested all other links on the main page and it seems to be

Re: CTFE Status 2

2017-03-20 Thread Stefan Koch via Digitalmars-d
On Monday, 20 March 2017 at 12:06:57 UTC, Stefan Koch wrote: On Monday, 20 March 2017 at 11:48:56 UTC, Stefan Koch wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Oh darn, function pointers regressed! I did not notice because the corresponding tests were comm

Re: tour.dlang.org is down

2017-03-20 Thread André via Digitalmars-d
On Sunday, 19 March 2017 at 08:28:41 UTC, Seb wrote: On Sunday, 19 March 2017 at 04:53:36 UTC, Meta wrote: Just posting to let people know that tour.dlang.org is currently down. I tested all other links on the main page and it seems to be only be the tour that is down. The Dlang Tour is hoste

[your code here]wikhfdnowijsdoldpaLPML;SADJWSDJJMDA;LMLADMkx;/lkmad;qkes'[qlS]

2017-03-20 Thread via Digitalmars-d
djdjdjbfdlkjsa ncxmjadks,fdmxc nxkjas,md cZXsdknxcl medsjakcxjfncx, zmekm, zxcfjdlkx,m czwjkldf xm,zcadf kjadfbjskfn jesakfbaksdjfkasjnflkwnsafewckewanrfknesrkanrwaknerdAwknrkwenrkewanrrawkRnDAQwnlsadk.,qwd;lasm,.x

Re: D-Apt package numbers

2017-03-20 Thread Russel Winder via Digitalmars-d
On Mon, 2017-03-20 at 09:29 +, Matthias Klumpp via Digitalmars-d wrote: > On Monday, 20 March 2017 at 08:52:05 UTC, Russel Winder wrote: > > > > I see that D-Apt has the Debian revision number on packages  > > starting at > > 0. I had understood that the policy was to start at 1. > > For stuf

D in China?

2017-03-20 Thread Laeeth Isharc via Digitalmars-d
Hi. I'm responsible for technology for an investment management company with its main offices in Hong Kong and London. We also have a small office in Shenzhen, and we're interested in becoming more involved in the Chinese open-source community, possibly via sponsoring projects for the summer

Re: The delang is using merge instead of rebase/squash

2017-03-20 Thread deadalnix via Digitalmars-d
On Monday, 20 March 2017 at 05:10:04 UTC, Martin Nowak wrote: On Wednesday, 15 March 2017 at 13:14:31 UTC, deadalnix wrote: This is making the history very spaghettified. Is that possible to have the bot rebase/squash commits and then pushing ? I don't really agree with the argument. A merge

Re: CTFE Status 2

2017-03-20 Thread Stefan Koch via Digitalmars-d
On Monday, 20 March 2017 at 11:48:56 UTC, Stefan Koch wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Oh darn, function pointers regressed! I did not notice because the corresponding tests were commented out. I am working to fix it ASAP. It's not function

Re: CTFE Status 2

2017-03-20 Thread Stefan Koch via Digitalmars-d
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Oh darn, function pointers regressed! I did not notice because the corresponding tests were commented out. I am working to fix it ASAP.

dub check

2017-03-20 Thread Nordlöw via Digitalmars-d
Rust 1.16 just introduced crate-level compiler checking via cargo check as described at https://blog.rust-lang.org/2017/03/16/Rust-1.16.html Could we extend DUB in a similar way to provide `dub check` that simply calls the compiler with the flag `-o-`?

Re: D-Apt package numbers

2017-03-20 Thread Matthias Klumpp via Digitalmars-d
On Monday, 20 March 2017 at 08:52:05 UTC, Russel Winder wrote: I see that D-Apt has the Debian revision number on packages starting at 0. I had understood that the policy was to start at 1. For stuff in *Debian* that is true, anything not in Debian should start at zero and add a "repository

D-Apt package numbers

2017-03-20 Thread Russel Winder via Digitalmars-d
I see that D-Apt has the Debian revision number on packages starting at 0. I had understood that the policy was to start at 1. -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 4

Re: RDMD [was Why don't you advertise more your language on Quora etc ?]

2017-03-20 Thread Russel Winder via Digitalmars-d
On Thu, 2017-03-16 at 19:54 -0400, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: > On 03/16/2017 05:48 AM, Russel Winder via Digitalmars-d wrote: > > > > Except that rdmd needs separating out as a distinct thing so that > > ldc > > users can use it. > > > > I'm pretty sure it does work fin