Re: std.digest toHexString

2017-03-20 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 20 March 2017 at 21:04:30 UTC, Ali Çehreli wrote: Agreed. Surprisingly, there are quite a number of issues that request exactly that, mostly thanks to our old friend bearophile. The following may be the reason for this WAT: This is another case where I can kinda get it in

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

Re: Terminix renamed to Tilix

2017-03-20 Thread Gerald via Digitalmars-d-announce
On Monday, 20 March 2017 at 17:25:01 UTC, Adam D. Ruppe wrote: On Monday, 20 March 2017 at 16:56:02 UTC, Gerald wrote: Terminix, a Linux GTK3 tiling terminal emulator written in D, has been renamed to Tilix due to trademark infringement issues with the Terminix International corporation. I'm

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: std.digest toHexString

2017-03-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, March 20, 2017 22:47:24 Adam D. Ruppe via Digitalmars-d-learn wrote: > The rules make sense alone, but together, they are just bizarre. That's frequently where the language design pitfalls lie. Well-meaning features that seem perfectly reasonable on their own (possibly even

Re: exceptions thrown when running app with failed unittests

2017-03-20 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-03-20 00:49, Ervin Bosenbacher wrote: On Sunday, 19 March 2017 at 23:23:48 UTC, Adam D. Ruppe wrote: On Sunday, 19 March 2017 at 22:33:26 UTC, Ervin Bosenbacher wrote: Is it normal to see the long trace output instead of just a failed unit test message? Yeah, it is normal, though IMO

Re: Inplace toLower()

2017-03-20 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-03-19 22:32, Nordlöw wrote: Is there an in-place version of std.uni.toLower() If not, how do I most elegantly construct one? I would recommend against toLower and toUpper as in-place versions. Not all letters can be converted in-place, i.e. they might require more storage. --

Re: Does "dub test" run tests?

2017-03-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, March 20, 2017 07:51:09 Russel Winder via Digitalmars-d-learn wrote: > I have a Meson build for a D program project with a single main.d file > that has some unit tests. Both executable and test executable are > created and work as expected. > > I created a minimal Dub file for this

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 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 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. > >

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: 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 > >

influxdb-dlang-wrapper v0.0.1 - D API for InfluxDB

2017-03-20 Thread Atila Neves via Digitalmars-d-announce
http://code.dlang.org/packages/influxdb-dlang-wrapper InfluxDB is a database optimised for time-series data. This package implements a D API via the REST interface so that this code works: import influxdb; // this will connect and create the `mydb` database if not already in InfluxDB const

excel-d v0.0.1 - D API to write functions callable from Excel

2017-03-20 Thread Atila Neves via Digitalmars-d-announce
http://code.dlang.org/packages/excel-d This dub package allows D code to be called from Excel. It uses compile-time reflection to register the user's code in an XLL (a DLL loaded by Excel) so no boilerplate is necessary. Not even `DllMain`! It works like this: main.d: import xlld;

Re: Dont Fear the Reaper -- A gentle introduction to D's GC

2017-03-20 Thread qznc via Digitalmars-d-announce
On Monday, 20 March 2017 at 14:07:35 UTC, Mike Parker wrote: This is the first in a series of posts introducing D's garbage collection and how it interacts with user code. This one is a basic introduction. Blog: https://dlang.org/blog/2017/03/20/dont-fear-the-reaper/ Reddit:

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

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: 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

Re: excel-d v0.0.1 - D API to write functions callable from Excel

2017-03-20 Thread Stefan Koch via Digitalmars-d-announce
On Monday, 20 March 2017 at 20:09:58 UTC, Atila Neves wrote: http://code.dlang.org/packages/excel-d This dub package allows D code to be called from Excel. It uses compile-time reflection to register the user's code in an XLL (a DLL loaded by Excel) so no boilerplate is necessary. Not even

Re: std.digest toHexString

2017-03-20 Thread Ali Çehreli via Digitalmars-d-learn
On 03/20/2017 09:31 AM, Adam D. Ruppe wrote: On Monday, 20 March 2017 at 16:04:10 UTC, Kagamin wrote: https://dpaste.dzfl.pl/eafa86c5426d Unbelievable, we're both right, sort of. So it is true that typeof(static[]) == dynamic. But the language also allows implicit conversion in the other

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

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. ;)

Re: Dont Fear the Reaper -- A gentle introduction to D's GC

2017-03-20 Thread Mike Parker via Digitalmars-d-announce
On Monday, 20 March 2017 at 21:12:08 UTC, qznc wrote: Whenever the GC comes up, I wonder about the "conservative" part. As far as I know there were attempts to make the GC "precise". What is the current status about that? If it is the subject of a future part of the series, I can wait. ;)

Re: SpaceD - a racing game written in D

2017-03-20 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 21 March 2017 at 00:49:14 UTC, WebFreak001 wrote: I just released my racing game I have been working on for the past few days for a linux game jam on itch.io[1]. Nice!

Re: excel-d v0.0.1 - D API to write functions callable from Excel

2017-03-20 Thread Laeeth Isharc via Digitalmars-d-announce
On Tuesday, 21 March 2017 at 00:25:46 UTC, Steven Schveighoffer wrote: On 3/20/17 4:09 PM, Atila Neves wrote: http://code.dlang.org/packages/excel-d This dub package allows D code to be called from Excel. It uses compile-time reflection to register the user's code in an XLL (a DLL loaded by

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

SpaceD - a racing game written in D

2017-03-20 Thread WebFreak001 via Digitalmars-d-announce
I just released my racing game I have been working on for the past few days for a linux game jam on itch.io[1]. It is an open source[2] 3D racing game in space (tracks/physics are 2D though) and I'm quite proud how it turned out. It contains a track editor with blender-like shortcuts, an

Re: excel-d v0.0.1 - D API to write functions callable from Excel

2017-03-20 Thread Laeeth Isharc via Digitalmars-d-announce
On Tuesday, 21 March 2017 at 00:25:46 UTC, Steven Schveighoffer wrote: On 3/20/17 4:09 PM, Atila Neves wrote: http://code.dlang.org/packages/excel-d This dub package allows D code to be called from Excel. It uses compile-time reflection to register the user's code in an XLL (a DLL loaded by

Re: excel-d v0.0.1 - D API to write functions callable from Excel

2017-03-20 Thread Steven Schveighoffer via Digitalmars-d-announce
On 3/20/17 4:09 PM, Atila Neves wrote: http://code.dlang.org/packages/excel-d This dub package allows D code to be called from Excel. It uses compile-time reflection to register the user's code in an XLL (a DLL loaded by Excel) so no boilerplate is necessary. Not even `DllMain`! It works like

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

Re: excel-d v0.0.1 - D API to write functions callable from Excel

2017-03-20 Thread Laeeth Isharc via Digitalmars-d-announce
On Monday, 20 March 2017 at 20:32:20 UTC, Stefan Koch wrote: On Monday, 20 March 2017 at 20:09:58 UTC, Atila Neves wrote: http://code.dlang.org/packages/excel-d This dub package allows D code to be called from Excel. It uses compile-time reflection to register the user's code in an XLL (a

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: 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

[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: 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

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.

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

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

Re: exceptions thrown when running app with failed unittests

2017-03-20 Thread Ervin Bosenbacher via Digitalmars-d-learn
On Monday, 20 March 2017 at 07:36:47 UTC, Jacob Carlborg wrote: On 2017-03-20 00:49, Ervin Bosenbacher wrote: On Sunday, 19 March 2017 at 23:23:48 UTC, Adam D. Ruppe wrote: On Sunday, 19 March 2017 at 22:33:26 UTC, Ervin Bosenbacher wrote: Is it normal to see the long trace output instead of

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

[Issue 4085] Steps toward a static foreach

2017-03-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4085 Daniel Čejchan changed: What|Removed |Added CC||czda...@gmail.com --

[Issue 4290] 'Fragile' opCmp/toHash signature errors

2017-03-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4290 Daniel Čejchan changed: What|Removed |Added CC||czda...@gmail.com --

Does "dub test" run tests?

2017-03-20 Thread Russel Winder via Digitalmars-d-learn
I have a Meson build for a D program project with a single main.d file that has some unit tests. Both executable and test executable are created and work as expected. I created a minimal Dub file for this project. Using Dub the program runs as expected. However when I run "dub test" it claims to

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

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

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: Does "dub test" run tests?

2017-03-20 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-03-20 at 00:58 -0700, Jonathan M Davis via Digitalmars-d- learn wrote: > […] > I haven't spent the time to dig in and report it properly, but based > on some > of what I saw recently on a project I have, the module with main in > it > didn't have its tests run, as if dub's didn't

Re: Does "dub test" run tests?

2017-03-20 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-03-20 at 08:39 +, Russel Winder wrote: > […] > Actually it seems worse than that. Even with "dub -b unittest" it > appears that Dub  compiles main.d without the -unittest flag to ldc2 > and so the normal application runs. And different behaviour with different build options, at

Re: Does "dub test" run tests?

2017-03-20 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-03-20 10:07, Russel Winder via Digitalmars-d-learn wrote: And different behaviour with different build options, at least when using dmd, but I think the same is true for ldc2: |> dub test No source files found in configuration 'library'. Falling back to "dub -b unittest". Performing

Re: std.digest toHexString

2017-03-20 Thread Kagamin via Digitalmars-d-learn
On Monday, 20 March 2017 at 15:46:10 UTC, Adam D. Ruppe wrote: On Monday, 20 March 2017 at 15:38:26 UTC, Kagamin wrote: This explicit slice won't work, because a slice of a fixed size array results in a fixed size array. No, it doesn't. int[4] a; typeof(a[] == int[]) You can try yourself in

Re: Is it std.regex, or is it me.

2017-03-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, March 20, 2017 14:36:32 Russel Winder via Digitalmars-d-learn wrote: > Given the following, where X and Y mark the spot: > > X epochRegex = regex("([0-9])+:"); > Y aEpochCapture = matchFirst(aVersionString, epochRegex); > Y bEpochCapture = matchFirst(bVersionString, epochRegex);

Re: std.digest toHexString

2017-03-20 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 20 March 2017 at 16:04:10 UTC, Kagamin wrote: https://dpaste.dzfl.pl/eafa86c5426d Unbelievable, we're both right, sort of. So it is true that typeof(static[]) == dynamic. But the language also allows implicit conversion in the other direction WTF. If you put a variable in

Re: Is it std.regex, or is it me.

2017-03-20 Thread Kagamin via Digitalmars-d-learn
A file stream would be another example of a thing that can't be naturally const even if you opened it for reading.

Re: DConf 2017 Schedule

2017-03-20 Thread Dukc via Digitalmars-d-announce
If I remember correctly, last year it took perhaps two months or so for the talks to be published on YouTube. Would it be much extra effort to publish unedited versions of them asap, for us who can't wait for the edited versions? Yes, they are that interesting.

Dont Fear the Reaper -- A gentle introduction to D's GC

2017-03-20 Thread Mike Parker via Digitalmars-d-announce
This is the first in a series of posts introducing D's garbage collection and how it interacts with user code. This one is a basic introduction. Blog: https://dlang.org/blog/2017/03/20/dont-fear-the-reaper/ Reddit:

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

Re: Dont Fear the Reaper -- A gentle introduction to D's GC

2017-03-20 Thread jmh530 via Digitalmars-d-announce
On Monday, 20 March 2017 at 14:07:35 UTC, Mike Parker wrote: This is the first in a series of posts introducing D's garbage collection and how it interacts with user code. This one is a basic introduction. Blog: https://dlang.org/blog/2017/03/20/dont-fear-the-reaper/ Reddit:

Is it std.regex, or is it me.

2017-03-20 Thread Russel Winder via Digitalmars-d-learn
Given the following, where X and Y mark the spot: X epochRegex = regex("([0-9])+:"); Y aEpochCapture = matchFirst(aVersionString, epochRegex); Y bEpochCapture = matchFirst(bVersionString, epochRegex); If X or Y are const or immutable the code fails to compile. Only if

Re: std.digest toHexString

2017-03-20 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 20 March 2017 at 15:38:26 UTC, Kagamin wrote: This explicit slice won't work, because a slice of a fixed size array results in a fixed size array. No, it doesn't. int[4] a; typeof(a[] == int[]) You can try yourself in the compiler, it is easy to verify.

Re: std.digest toHexString

2017-03-20 Thread Kagamin via Digitalmars-d-learn
On Monday, 20 March 2017 at 04:03:20 UTC, Vladimir Panteleev wrote: https://issues.dlang.org/show_bug.cgi?id=9279 Has it not been fixed? That's specific to the return statement. Like you can assign an address of a local variable, but you can't return it.

Re: std.digest toHexString

2017-03-20 Thread Kagamin via Digitalmars-d-learn
On Thursday, 16 March 2017 at 17:50:45 UTC, Adam D. Ruppe wrote: string s = func()[]; // I'd allow it, at least the user wrote `[]` meaning they realized it was stack data and presumably knows what that means about the slice's lifetime This explicit slice won't work, because a slice of a

Re: Dont Fear the Reaper -- A gentle introduction to D's GC

2017-03-20 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 20 March 2017 at 14:07:35 UTC, Mike Parker wrote: This is the first in a series of posts introducing D's garbage collection and how it interacts with user code. This one is a basic introduction. Blog: https://dlang.org/blog/2017/03/20/dont-fear-the-reaper/ Reddit:

Re: GitHub detects .d source as Makefile?

2017-03-20 Thread XavierAP via Digitalmars-d-learn
On Sunday, 19 March 2017 at 21:53:17 UTC, Seb wrote: FWIW this has been fixed by Martin last summer, but the people at GitHub aren't very responsive. The PR is still pending :/ More info: https://trello.com/c/g9PB3ISG/233-improve-d-language-recognition-on-github

Re: Amper audio player for GNU/Linux and X11

2017-03-20 Thread Kagamin via Digitalmars-d-announce
dmd -m64 -c amper.d should work on 32-bit system too and compile to 64-bit code.

Re: Dont Fear the Reaper -- A gentle introduction to D's GC

2017-03-20 Thread XavierAP via Digitalmars-d-announce
On Monday, 20 March 2017 at 14:07:35 UTC, Mike Parker wrote: This is the first in a series of posts introducing D's garbage collection and how it interacts with user code. This one is a basic introduction. Great post, and the title is gold. Looking forward to the next installments so I learn

Issue with typeof

2017-03-20 Thread StarGrazer via Digitalmars-d-learn
typeof() fails unless method is static. Says & requires this. But for typeof, it shouldn't matter and should pass. So how to get a function pointer to a non static member function(of an interface)? I've tried creating the type like T t; typeof() fptr; but same issue. It may be because T

Re: Terminix renamed to Tilix

2017-03-20 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 20 March 2017 at 16:56:02 UTC, Gerald wrote: Terminix, a Linux GTK3 tiling terminal emulator written in D, has been renamed to Tilix due to trademark infringement issues with the Terminix International corporation. I'm sure you don't want the hassle, but you might be able to fight

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

Terminix renamed to Tilix

2017-03-20 Thread Gerald via Digitalmars-d-announce
Terminix, a Linux GTK3 tiling terminal emulator written in D, has been renamed to Tilix due to trademark infringement issues with the Terminix International corporation. The new URLs for Tilix are as follows: Website: https://gnunn1.github.io/tilix-web Github Repo:

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: Issue with typeof

2017-03-20 Thread Moritz Maxeiner via Digitalmars-d-learn
On Monday, 20 March 2017 at 17:58:32 UTC, Moritz Maxeiner wrote: 2) Create a template that can be used like this (you'll want to consult std.traits for this): void foo (delegateOf!(T.method) fptr) {} This may sound harder that it is, btw. A template that does exactly that is the following

Re: DConf 2017 Hotel - book now!

2017-03-20 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 16 March 2017 at 19:35:31 UTC, Steven Schveighoffer wrote: On 3/14/17 12:39 PM, Bastiaan Veelo wrote: On Saturday, 4 March 2017 at 20:08:39 UTC, Vladimir Panteleev wrote: On Thursday, 2 March 2017 at 02:24:50 UTC, Walter Bright wrote:

Re: Issue with typeof

2017-03-20 Thread StarGrazer via Digitalmars-d-learn
On Monday, 20 March 2017 at 18:27:39 UTC, Moritz Maxeiner wrote: On Monday, 20 March 2017 at 17:58:32 UTC, Moritz Maxeiner wrote: [...] This may sound harder that it is, btw. A template that does exactly that is the following (template constraints that verify `method` to actually be a

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

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