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
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
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
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
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
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
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.
--
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
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
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
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.
>
>
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
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
> >
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
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;
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:
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
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
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
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
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
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
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. ;)
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. ;)
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!
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
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
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
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
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
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
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
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
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
djdjdjbfdlkjsa ncxmjadks,fdmxc nxkjas,md cZXsdknxcl
medsjakcxjfncx, zmekm, zxcfjdlkx,m czwjkldf xm,zcadf kjadfbjskfn
jesakfbaksdjfkasjnflkwnsafewckewanrfknesrkanrwaknerdAwknrkwenrkewanrrawkRnDAQwnlsadk.,qwd;lasm,.x
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
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.
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
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
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
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
https://issues.dlang.org/show_bug.cgi?id=4085
Daniel Čejchan changed:
What|Removed |Added
CC||czda...@gmail.com
--
https://issues.dlang.org/show_bug.cgi?id=4290
Daniel Čejchan changed:
What|Removed |Added
CC||czda...@gmail.com
--
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
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
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
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-`?
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
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
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
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
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);
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
A file stream would be another example of a thing that can't be
naturally const even if you opened it for reading.
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.
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:
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
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:
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
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.
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.
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
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:
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
dmd -m64 -c amper.d
should work on 32-bit system too and compile to 64-bit code.
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
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
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
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, 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:
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. ;)
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
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:
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
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
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
76 matches
Mail list logo