On Monday, 31 October 2016 at 20:35:24 UTC, Martin Nowak wrote:
and I did take care of that forward reference bug (Issue 16607).
Thanks again for that. That one would've actually kept me from
upgrading for my current project.
On Saturday, 5 November 2016 at 02:24:00 UTC, Konstantin
Kutsevalov wrote:
Hi,
is there a way to catch system signal of "kill" command or
"shutdown"?
PS: are there some other ways also to send signals to running a
D application?
have a look in std.process
I don't think you can catch
On Monday, 31 October 2016 at 01:27:08 UTC, Martin Nowak wrote:
Glad to announce D 2.072.0.
http://dlang.org/changelog/2.072.0.html
-Martin
I've run into a problem with code using ctRegex that fails to
compile only in release build.
private immutable string TOC_LINE_PATTERN =
https://issues.dlang.org/show_bug.cgi?id=16627
--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/868ce84e30a3d4e1157e9e72bc3e308b0cd0b1db
fix Issue 16627 - non-static structs with postblit/dtor
https://issues.dlang.org/show_bug.cgi?id=16607
--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/b295ff509a52cd332d975014279ed891e11f465d
fix Issue 16607 - forward reference error for nested struct
https://issues.dlang.org/show_bug.cgi?id=16625
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/d8075dc0581ae1da6e27762689a2d902f4c0947e
fix Issue 16625 - undeprecated switch fallthrough error
On Friday, 4 November 2016 at 23:38:47 UTC, sarn wrote:
I suggest trying it with the latest dmd and filing a bug
report. Taking a quick look at the library code
(https://github.com/dlang/phobos/blob/master/std/variant.d), it
*seems* like everything uses templates and functions returning
https://issues.dlang.org/show_bug.cgi?id=16662
Issue ID: 16662
Summary: Can't call std.variant.visit from a pure function
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: minor
On Friday, 4 November 2016 at 10:59:25 UTC, Marc Schütz wrote:
In this case better make sure to remove the resulting dead code
from the old interpreter, otherwise it will become and
unmaintainable mess in the long run.
interpreter is used all over the code, and it is a set of
visitors doing
On Thursday, 3 November 2016 at 13:40:11 UTC, Steven
Schveighoffer wrote:
On 11/2/16 4:43 AM, Jonathan M Davis via Digitalmars-d-learn
In the case of the original post, however, you *need* to use
this.value, as the parameter masks the member of the same name.
Using 'this' removes ambiguity.
Hi,
is there a way to catch system signal of "kill" command or
"shutdown"?
PS: are there some other ways also to send signals to running a D
application?
On Saturday, 5 November 2016 at 00:04:16 UTC, Daniel Kozak wrote:
I am using dmd under wine for some time and everything works OK
(in many cases experience is better then on native windows
machine setup).
But with twol latest dmd releases I am unable to use anything
curl related. Even basic
https://issues.dlang.org/show_bug.cgi?id=16661
Issue ID: 16661
Summary: std/format.d(1070): Incorrect format specifier: .2f
for wstring and dstring
Product: D
Version: D2
Hardware: x86_64
OS: Linux
On Friday, 4 November 2016 at 10:59:25 UTC, Marc Schütz wrote:
In this case better make sure to remove the resulting dead code
from the old interpreter, otherwise it will become and
unmaintainable mess in the long run.
If you ask me the old interpreter is already an unmaintainble
mess.
It
On 11/04/2016 07:01 PM, John Colvin wrote:
On Friday, 4 November 2016 at 17:40:05 UTC, Andrei Alexandrescu wrote:
Error: failed to create path to file:
.dub/obj/.dub/packages/checkedint-0.5.3/.dub/build/library-release-linux.posix-x86_64-ldc_0-34AC553328DC970F29AC41DDB38D09AB/libcheckedint.a
I am using dmd under wine for some time and everything works OK
(in many cases experience is better then on native windows
machine setup).
But with twol latest dmd releases I am unable to use anything
curl related. Even basic example from
On Friday, 4 November 2016 at 02:56:07 UTC, Paul Backus wrote:
When I compile this (using DMD 2.069 on Debian Linux), I get an
error saying that I can't call visit from a pure function. This
is surprising, since all visit does (in theory) is call the
provided functions, and all of _them_ are
On Friday, 4 November 2016 at 14:37:04 UTC, bluphantom91 wrote:
On Friday, 4 November 2016 at 02:59:49 UTC, Paul Backus wrote:
On Friday, 4 November 2016 at 02:28:17 UTC, bluphantom91 wrote:
Hello,
I am trying to finish up a group project but I am running
into a small problem. I keep getting
On Friday, 4 November 2016 at 17:40:05 UTC, Andrei Alexandrescu
wrote:
Error: failed to create path to file:
.dub/obj/.dub/packages/checkedint-0.5.3/.dub/build/library-release-linux.posix-x86_64-ldc_0-34AC553328DC970F29AC41DDB38D09AB/libcheckedint.a
No such file or directory
FAIL
On 04.11.2016 21:03, Andrej Mitrovic wrote:
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote:
So I was thinking of a way of extending if statements that have
declarations. The following being as example of the current use of if
statements with declarations:
if(int* weDontPollute
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote:
So I was thinking of a way of extending if statements that have
declarations. The following being as example of the current use
of if statements with declarations:
if(int* weDontPollute = someFunc())
{
// use
On 11/4/16 1:46 PM, Jerry wrote:
On Friday, 4 November 2016 at 16:15:21 UTC, Steven Schveighoffer wrote:
It's just a strawman type, I'm sure there's ways to handle these
things, I just didn't put a lot of effort into all the cases.
But really it's just syntax to separate the bool check from
On Friday, 4 November 2016 at 17:12:42 UTC, Andrei Alexandrescu
wrote:
[...]
$ PATH=~/bin/ldc2-1.1.0-beta3-linux-x86/bin:$PATH
$ dub test --compiler=ldc2
[...]
BTW, you should try out the install script (from
http://dlang.org/download):
curl -fsS https://dlang.org/install.sh | bash -s
On Friday, 4 November 2016 at 14:37:04 UTC, bluphantom91 wrote:
On Friday, 4 November 2016 at 02:59:49 UTC, Paul Backus wrote:
On Friday, 4 November 2016 at 02:28:17 UTC, bluphantom91 wrote:
Hello,
I am trying to finish up a group project but I am running
into a small problem. I keep getting
On Friday, 4 November 2016 at 17:40:05 UTC, Andrei Alexandrescu
wrote:
On 11/04/2016 01:12 PM, Andrei Alexandrescu wrote:
So I'm working on the checkedint pull request (really need to
get that
in...) and was trying to get some benchmarks going with ldc.
The stock
ldc on mint is outdated and it
On Friday, 4 November 2016 at 15:34:00 UTC, Jerry wrote:
On Friday, 4 November 2016 at 14:16:44 UTC, Matthias Bentrup
wrote:
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote:
if(int i = someFunc(); i >= 0)
{
// use i
}
Thoughts on this sort of feature?
I would
On Friday, 4 November 2016 at 16:15:21 UTC, Steven Schveighoffer
wrote:
It's just a strawman type, I'm sure there's ways to handle
these things, I just didn't put a lot of effort into all the
cases.
But really it's just syntax to separate the bool check from the
value itself. You can get
On 11/04/2016 01:12 PM, Andrei Alexandrescu wrote:
So I'm working on the checkedint pull request (really need to get that
in...) and was trying to get some benchmarks going with ldc. The stock
ldc on mint is outdated and it can't compile the code, so I needed to do
a self-installation. I've put
Am Fri, 4 Nov 2016 13:12:42 -0400
schrieb Andrei Alexandrescu :
> So I'm working on the checkedint pull request (really need to get
> that in...) and was trying to get some benchmarks going with ldc. The
> stock ldc on mint is outdated and it can't compile the code,
On Friday, 4 November 2016 at 15:50:36 UTC, Gianni Pisetta wrote:
Hi all,
I am having issues finding a solution for this, i want to check
if an alias is an istance of a variadic template nested in
another variadic template.
[...]
there is some sort of workaround?
Thanks,
Gianni
Hello, I'm
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote:
Thoughts on this sort of feature?
Love your name, Jerry ;)
Maybe something like this psuedo code:
struct Condition(T) {
Condition(T val, bool cond) { m_val = val; m_cond = cond; }
bool opCast(T)() if(is(T == bool)) {
So I'm working on the checkedint pull request (really need to get that
in...) and was trying to get some benchmarks going with ldc. The stock
ldc on mint is outdated and it can't compile the code, so I needed to do
a self-installation. I've put it in ~/bin/ldc2-1.1.0-beta3-linux-x86. Then:
$
On Friday, 4 November 2016 at 13:56:57 UTC, Andrea Fontana wrote:
If you don't like indentation you can simply ignore it or you
can use old goto :)
{
int i = someFunc();
if (i < 0) goto outer;
// your code here
}
outer:
BTW there is a trick to avoid goto+label:
switch (true) {
On 11/4/16 11:27 AM, Jerry wrote:
On Friday, 4 November 2016 at 14:10:51 UTC, Steven Schveighoffer wrote:
Hm... what about something like:
struct BoolCond(T, string cond)
{
T val;
bool opCast(B)() if(is(B == bool))
{
return mixin("val " ~ cond);
}
}
auto boolcond(string cond,
Just announced:
https://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/235353279/
We are going to try a freely available conference room to have a
presentation. No details on the presentation yet (I will figure that out
soon), and probably no streaming this time.
-Steve
Hi all,
I am having issues finding a solution for this, i want to check
if an alias is an istance of a variadic template nested in
another variadic template.
Here is an example:
template A(As...) {
template B(Bs...) {
}
}
alias BI = A!(1,2).B!(3,4,5);
Now i want to test if BI is an
On Friday, 4 November 2016 at 14:10:51 UTC, Steven Schveighoffer
wrote:
On 11/3/16 6:29 PM, Jerry wrote:
So I was thinking of a way of extending if statements that have
declarations. The following being as example of the current
use of if
statements with declarations:
if(int*
On Friday, 4 November 2016 at 14:16:44 UTC, Matthias Bentrup
wrote:
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote:
if(int i = someFunc(); i >= 0)
{
// use i
}
Thoughts on this sort of feature?
I would prefer the syntax
if( (int i = someFunc()) >= 0 )
{
On Friday, 21 October 2016 at 18:35:38 UTC, Jonathan M Davis
wrote:
On Friday, October 21, 2016 12:18:28 Nordlöw via Digitalmars-d
wrote:
It seems AA's doesn't respect disabling of postblit for its
Key-type even when it's sent as an r-value.
This is a serious bug.
Well, I wouldn't expect it
On Friday, 4 November 2016 at 08:04:12 UTC, Jacob Carlborg wrote:
Currently I'm using a standard for loop iterating over the
lines. I'm always looking at the current line and the next
line. When the current line is the standard pattern and the
next line is is not, I do a separate loop until I
On Friday, 4 November 2016 at 14:55:27 UTC, Guillaume Piolat
wrote:
On Thursday, 3 November 2016 at 18:54:14 UTC, Gary Willoughby
wrote:
What is the simplest way of doing @nogc string concatenation?
I use sprintf + zero-terminated strings (or a RAII struct to
convert slices to ZT strings).
On Thursday, 3 November 2016 at 18:54:14 UTC, Gary Willoughby
wrote:
What is the simplest way of doing @nogc string concatenation?
I use sprintf + zero-terminated strings (or a RAII struct to
convert slices to ZT strings).
On 11/4/16 10:10 AM, Steven Schveighoffer wrote:
On 11/3/16 6:29 PM, Jerry wrote:
So I was thinking of a way of extending if statements that have
declarations. The following being as example of the current use of if
statements with declarations:
if(int* weDontPollute = someFunc())
{
On Friday, 4 November 2016 at 02:59:49 UTC, Paul Backus wrote:
On Friday, 4 November 2016 at 02:28:17 UTC, bluphantom91 wrote:
Hello,
I am trying to finish up a group project but I am running into
a small problem. I keep getting an error about fgetc not being
callable. The purpose of my
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote:
if(int i = someFunc(); i >= 0)
{
// use i
}
Thoughts on this sort of feature?
I would prefer the syntax
if( (int i = someFunc()) >= 0 )
{
// use i
}
as this matches the already existing assignment
On 11/3/16 6:29 PM, Jerry wrote:
So I was thinking of a way of extending if statements that have
declarations. The following being as example of the current use of if
statements with declarations:
if(int* weDontPollute = someFunc())
{
// use weDontPollute
}
That's great
On Friday, 4 November 2016 at 13:38:30 UTC, Superstar64 wrote:
On Thursday, 3 November 2016 at 22:32:17 UTC, Stefan Koch wrote:
Just Introduce another block
{
int i = someFunc();
if (i >= 0) { ... }
}
// i is not visible here
That adds 2 indention levels after formatting.
Unfortunately
On Thursday, 3 November 2016 at 22:32:17 UTC, Stefan Koch wrote:
Just Introduce another block
{
int i = someFunc();
if (i >= 0) { ... }
}
// i is not visible here
That adds 2 indention levels after formatting.
Unfortunately this doesn't work:
---
{
int i = someFunc();
if (i >= 0):
On Friday, 4 November 2016 at 01:19:36 UTC, Chris Wright wrote:
On Thu, 03 Nov 2016 15:44:20 +, Marc Schütz wrote:
On Tuesday, 1 November 2016 at 17:41:35 UTC, Stefan Koch wrote:
I intend to keep the current implemntation around as a
fallback.
For things that are used rarely.
like
On Thursday, 3 November 2016 at 16:35:08 UTC, Stefan Koch wrote:
On Thursday, 3 November 2016 at 15:44:20 UTC, Marc Schütz wrote:
On Tuesday, 1 November 2016 at 17:41:35 UTC, Stefan Koch wrote:
I intend to keep the current implemntation around as a
fallback.
For things that are used rarely.
On Friday, 4 November 2016 at 00:04:28 UTC, mogu wrote:
Introducing a block is not intuitive and cause an identation.
How is using a block to produce a sub-scope not intuitive? That's
using a standard feature to do exactly what it is supposed to do.
On 03/11/16 23:00, Yuxuan Shui wrote:
On Wednesday, 2 November 2016 at 03:36:42 UTC, Andrei Alexandrescu wrote:
[snip]
* The implementation cannot use Phobos' allocator because it's in
druntime.
How about let the user provide the memory block when they calls reserve()?
I think that's just
On 02/11/16 05:36, Andrei Alexandrescu wrote:
Cons:
* Built-in hashtables are a convenience facility more than a
high-performance one, so providing an efficiency-oriented primitive
seems a bit odd.
I think that, in itself, is a mistake. A language that thinks of itself
as a system
https://issues.dlang.org/show_bug.cgi?id=16570
--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/620ecc2fa91dd88310a9205666fc0c826a778303
fix Issue 16570 - Enum member with interpreted...
https://issues.dlang.org/show_bug.cgi?id=16523
--- Comment #10 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/cdeca315729264ddbdd72ad9a83ea4fc5762e0dd
fix Issue 16523 - case variables should be const/immutable
https://issues.dlang.org/show_bug.cgi?id=14613
--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/a4f584ffdc195cc99a738ba495c8261284813d2a
fix Issue 14613 - DMD: Internal error: backend/cod1.c 1567
https://issues.dlang.org/show_bug.cgi?id=16484
--- Comment #8 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/daf387f065d4914cc868deb584ee8b6fb53774a5
add comment in reponse to Issue 16484
https://issues.dlang.org/show_bug.cgi?id=15862
--- Comment #16 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/4dfc9e9252220ef724412a74b3a8caf862d0a95e
fix Issue 15862 - allocating storage in pure functions
https://issues.dlang.org/show_bug.cgi?id=15989
--- Comment #13 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/e6c2080774ec8e00356b228f8119945846cc4d43
fix Issue 15989 - Initializing manifest constants with CTFE
https://issues.dlang.org/show_bug.cgi?id=16525
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/376b34d10968c0ea0169fe1c6876b7b3227dea0e
fix Issue 16525 - C++ member variables have no mangling
https://issues.dlang.org/show_bug.cgi?id=15907
--- Comment #12 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/f899b4b59620e354b6ba0acfe843efb559202cd8
fix Issue 15907 - unjustified deprecation with getMember
https://issues.dlang.org/show_bug.cgi?id=16530
--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/ad382b87d3f0a9f8992fe836165e26a68724ad77
fix Issue 16530 - -O -cov interaction leads to wrong codegen
https://issues.dlang.org/show_bug.cgi?id=16536
--- Comment #20 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/3b34132a9dd6fd3ac6bd32c572dc6a9c2a75b8f8
fix Issue 16536 - OSX mangling mismatch in dmd's C++/D ABI
https://issues.dlang.org/show_bug.cgi?id=3827
--- Comment #44 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/31f070f607398bcef72110f40c125a7f2ea7761b
Fix issue 3827 - Deprecate implicit string concatenation
https://issues.dlang.org/show_bug.cgi?id=16563
--- Comment #8 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/07bbf2d0ef547339dee5e886a1a924691c3eb8b8
fix Issue 16563 - wrong alignment in function
https://issues.dlang.org/show_bug.cgi?id=16499
--- Comment #2 from github-bugzi...@puremagic.com ---
Commit pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/573ab09aac2e59225e86440702a3769761734f15
Merge pull request #6140 from yshui/master
--
https://issues.dlang.org/show_bug.cgi?id=15780
--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/60390bd21a45479b6377751fef4be40159effe0a
fix Issue 15780 - [REG2.069] CTFE foreach fails with tuple
https://issues.dlang.org/show_bug.cgi?id=16589
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/34213361ec3cd13485db7eb4044e93b85178397c
fix Issue 16589 - Taking address of stack variables in @safe
https://issues.dlang.org/show_bug.cgi?id=16572
--- Comment #12 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/847baa9210e62dbb058b86031a2b36e3a1195440
fix Issue 16572 - can't take inout delegate
https://issues.dlang.org/show_bug.cgi?id=16449
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/311efc70e4a9de30329b5f02a8387b7ccf5014ac
Fix issue 16449 - Add support for the RDTSCP opcode in IASM.
https://issues.dlang.org/show_bug.cgi?id=16348
--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/93c3dcf26f5c5ae612ccce044012d2b297fe46bf
fix Issue 16348 - ICE with package visibility
https://issues.dlang.org/show_bug.cgi?id=16560
--- Comment #7 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/09e3fdd31d53fcb96a787a6a9de466a7c1f72ac1
fix Issue 16560 - [Mir] Prefetch intrinsics like in LDC
https://issues.dlang.org/show_bug.cgi?id=16031
--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/253b94371378a1acdaca26b515366be74b4f35bd
fix Issue 16031 - symbol idx out of bounds w/ multilib and
https://issues.dlang.org/show_bug.cgi?id=16085
--- Comment #15 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/22dc48171eaa3ef43dbec3e6bab6ea7fcb839a37
fix Issue 16085 - wrong visibility warning for overloaded
https://issues.dlang.org/show_bug.cgi?id=15857
--- Comment #16 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/c5822394c89c98a8855302164433acf6db09208b
fix Issue 15857 - incorrect checkimports mismatch for
https://issues.dlang.org/show_bug.cgi?id=16460
--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/0c9374cec813f8b29483bebd5a659be55958c299
fix Issue 16460 - ICE for package visibility check in
I have a file with a bunch of lines I want to process. I want to process
these lines line by line. Most of these lines have the same pattern.
Some of the lines have a different pattern. I want to bundle those
lines, which have a non-standard pattern, together with the last line
that had the
On Wednesday, 2 November 2016 at 11:17:49 UTC, Jonathan M Davis
wrote:
version(DIGITAL_MARS_STDIO)
extern(C) int setmode(int, int) nothrow @nogc;
else version(MICROSOFT_STDIO)
{
extern(C) int _setmode(int, int) nothrow @nogc;
alias setmode = _setmode;
}
It really should be put in
78 matches
Mail list logo