Re: Does anyone have a completed version of a d analogue to php's var_dump?

2017-02-24 Thread Seb via Digitalmars-d
On Saturday, 25 February 2017 at 06:22:02 UTC, Kevin Brogan wrote: I can dump a struct easily enough with the following. I'm wondering if anyone else has done all the work to make it work for every type? https://code.dlang.org/ is down at the moment so I can't check there, and google hasn't

DConf 2017 Early Bird Registration expires Monday!

2017-02-24 Thread Walter Bright via Digitalmars-d-announce
http://dconf.org/2017/registration.html Don't forget, it goes up to $400 after Monday.

Does anyone have a completed version of a d analogue to php's var_dump?

2017-02-24 Thread Kevin Brogan via Digitalmars-d
I can dump a struct easily enough with the following. I'm wondering if anyone else has done all the work to make it work for every type? https://code.dlang.org/ is down at the moment so I can't check there, and google hasn't been helpful.

Re: Voting for std.experimental.checkedint

2017-02-24 Thread Ola Fosheim Grostad via Digitalmars-d
On Friday, 24 February 2017 at 20:37:28 UTC, Dmitry Olshansky wrote: On 2/24/17 4:20 PM, Robert burner Schadek wrote: checkedint got voted in. With 2 Yes and 2 yes with remarks. Remarkably unpopular vote we have here. If I read it right it implies that nobody cares for checked integers. It

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Ola Fosheim Grøstad via Digitalmars-d
On Saturday, 25 February 2017 at 00:50:36 UTC, Chris Wright wrote: On Fri, 24 Feb 2017 21:16:28 +0100, Timon Gehr wrote: Worse. It turns failures into UB. Which is what ketmar described. D allows asserts being turned into assumes. Which is potentially unsound.

Re: Recommend: IDE and GUI library

2017-02-24 Thread evilrat via Digitalmars-d-learn
On Saturday, 25 February 2017 at 00:45:24 UTC, Moritz Maxeiner wrote: I use Visual Studio Code on Linux and macOS, not sure how the experience on Windows is, but I'd expect it to be the same. Windows is fine, can also debug mscoff x86 or x64 projects with MS 'cpptools' plugin that has

Re: CTFE Status 2

2017-02-24 Thread Stefan Koch via Digitalmars-d
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: Currently I am having trouble caused by a bug in dmds inliner that only happens on when dmd is compiled as a 32bit executable until I have isolated / fixed this development is slowed down. This bug was Issue #17220 and is

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Chris M via Digitalmars-d
On Friday, 24 February 2017 at 20:16:28 UTC, Timon Gehr wrote: On 24.02.2017 16:29, Chris Wright wrote: On Fri, 24 Feb 2017 09:14:24 +0200, ketmar wrote: forget about "-release" dmd arg. forget about "-boundscheck=off". no, really, they won't do you any good. after all, catching a bug in your

[Issue 17215] [Reg 2.073] ICE(cgcod.c:findreg) with SIMD and -O -inline

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17215 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/46d1948f4c4f05143729f9849b4edefe01b1a02e fix Issue 17215 - ICE(cgcod.c:findreg) with SIMD and -O

Re: Getting nice print of struct for debugging

2017-02-24 Thread Minty Fresh via Digitalmars-d-learn
On Saturday, 25 February 2017 at 01:27:09 UTC, Minty Fresh wrote: On Wednesday, 22 February 2017 at 11:18:15 UTC, Martin Tschierschke wrote: [...] Since structs are Plain-old Data and don't do inheritance, the best option is a template mixin. ie. template mixin PrettyPrint {

Re: Getting nice print of struct for debugging

2017-02-24 Thread Minty Fresh via Digitalmars-d-learn
On Wednesday, 22 February 2017 at 11:18:15 UTC, Martin Tschierschke wrote: On Tuesday, 21 February 2017 at 14:02:54 UTC, Jacob Carlborg wrote: [...] Yes, this works, I would say this is the simplest: MyStruct s; foreach (index, name ; FieldNameTuple!MyStruct) writefln("%s: %s", name,

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Chris Wright via Digitalmars-d
On Fri, 24 Feb 2017 21:16:28 +0100, Timon Gehr wrote: > On 24.02.2017 16:29, Chris Wright wrote: >> On Fri, 24 Feb 2017 09:14:24 +0200, ketmar wrote: >>> forget about "-release" dmd arg. forget about "-boundscheck=off". no, >>> really, they won't do you any good. after all, catching a bug in your

Re: Recommend: IDE and GUI library

2017-02-24 Thread Moritz Maxeiner via Digitalmars-d-learn
On Friday, 24 February 2017 at 22:44:55 UTC, XavierAP wrote: Hi I've looked at wiki.dlang.org/IDEs, and I see that Visual D is linked from dlang.org/download.html. Still I was looking for personal opinions and experiences beyond hard specs, I wonder if one of the IDEs is already dominant at

[Issue 17225] override abstract function by abstract function

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17225 --- Comment #1 from Satoshi --- *abstract class Bar : Foo { interesting... It works on this simple example, but in more complex code nope. I'll try to find why. --

[Issue 17225] New: override abstract function by abstract function

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17225 Issue ID: 17225 Summary: override abstract function by abstract function Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

[Issue 16590] Wrong di generation for ref methods

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16590 --- Comment #15 from Satoshi --- () @trusted { }(); is generated as: () { }(); --

[Issue 16590] Wrong di generation for ref methods

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16590 Satoshi changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 17049] [scope] class references are not escape checked like pointers

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17049 --- Comment #7 from Martin Nowak --- And this is supposed to not work? struct Handle { int a; } static @safe Handle get2(return ref scope S _this) { return Handle(1); } struct S { } Handle escape() @safe { S s; auto h =

[Issue 17049] [scope] class references are not escape checked like pointers

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17049 --- Comment #6 from Martin Nowak --- And the same is supposed to work for foreign pointers? static @safe float* get2(return ref scope S _this) { return convert(&_this); } @trusted float* convert(S* s) { return cast(float*)s; }

Recommend: IDE and GUI library

2017-02-24 Thread XavierAP via Digitalmars-d-learn
Hi I've looked at wiki.dlang.org/IDEs, and I see that Visual D is linked from dlang.org/download.html. Still I was looking for personal opinions and experiences beyond hard specs, I wonder if one of the IDEs is already dominant at least for each OS for any good reason. My requirements are

[Issue 17049] [scope] class references are not escape checked like pointers

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17049 --- Comment #5 from Martin Nowak --- (In reply to Martin Nowak from comment #4) > return ps1; // works silenty escapes !!! > // return ps2; // doesn't work correctly errors on escape !!! > } --

[Issue 17049] [scope] class references are not escape checked like pointers

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17049 --- Comment #4 from Martin Nowak --- There is a difference from member functions to free function. static @safe S* get2(return ref scope S _this) { return &_this; } struct S { @safe S* get1() return scope { return

Re: Voting for std.experimental.checkedint

2017-02-24 Thread Jack Stouffer via Digitalmars-d
On Friday, 24 February 2017 at 20:37:28 UTC, Dmitry Olshansky wrote: If I read it right it implies that nobody cares for checked integers. I guess you can say I don't personally care about them because I have no personal use case for them. But, as I said in my remarks, I understand why we

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 24 February 2017 at 17:18:03 UTC, Jack Stouffer wrote: Neither do I. But, the progenitor of that idea is that languages have understood use-cases, and that using them outside of those areas is non-optimal. The way I see it system level programming is usually not well supported by

[Issue 17224] Foreach documentation still refers to TypeTuples, rather than AliasSequences

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17224 Brad Anderson changed: What|Removed |Added CC|e...@gnuk.net| --

[Issue 17224] Foreach documentation still refers to TypeTuples, rather than AliasSequences

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17224 Brad Anderson changed: What|Removed |Added CC||e...@gnuk.net

[Issue 17224] New: [The D Bug Tracker]

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17224 Issue ID: 17224 Summary: [The D Bug Tracker] Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity: minor

[Issue 17049] [scope] class references are not escape checked like pointers

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17049 Martin Nowak changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 17111] DMD accepts switch statement with non-const case variables

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17111 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/84fcc60ae769015e5a2acfbc73881e7808799e48 Fix issue 17111 - More robust detection of variables used as

[Issue 17168] Shift left operator causes segfault when compiling with -O flag

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17168 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/dec45d735143737b499f9ce105b74b13b71f3a73 fix Issue 17168

[Issue 17169] New default ddoc theme merges all paragraphs except the first

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17169 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/5fcb2ea18bf9434624b8163d80a14f8782639483 Fix issue 17169 - New default ddoc theme merges all

[Issue 4682] [CTFE] Run-time Vs Compile-time of int.min % -1

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4682 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/a4cedfa2a50fdf81e0b67a7acdbb2d872e88 add test case for Issue 4682 --

[Issue 16483] ICE in expression.d from typeof

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16483 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/3f94ea1ecba10d663faca0d4bc814057e40dbd70 Fix issue 16483 - Prevent an ICE with lambdas as template

[Issue 14859] static declared array with more than 16MB size should be allowed in struct and class declaration

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14859 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/07855a2f94e216b65a342dc06a7d6f1d6bcafb8f reboot #6081: Fix issue 14859 - 16MiB size limit for static

Re: Voting for std.experimental.checkedint

2017-02-24 Thread Dmitry Olshansky via Digitalmars-d
On 2/24/17 4:20 PM, Robert burner Schadek wrote: checkedint got voted in. With 2 Yes and 2 yes with remarks. Remarkably unpopular vote we have here. If I read it right it implies that nobody cares for checked integers. I will set the autotester to merge. Thank you @andralex for the hard

[Issue 17117] [REG2.073] erroneous "escaping reference to local variable"

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17117 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/4a4dcf23830e9066a70cb1c381d97306f2bb5bbc fix Issue 17117 - erroneous 'escaping reference to local

[Issue 17057] trait "allMembers" incorrectly includes imports

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17057 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/912252b50277b95964981ef197d708db662b6554 Fix Issue 17057 - Added test file

[Issue 17143] [REG2.072.0] Declaration is already defined on global enum = tuple(...).expand declaration

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17143 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/555a9a1f5e105b6e815b0a54218de04e36289e38 Fix Issue 17143 - [REG2.072.0] Declaration is already

[Issue 17130] [Reg 2.074] ambiguous implicit super call when inheriting core.sync.mutex.Mutex

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17130 --- Comment #9 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/db81df0b6db19f5808e551a01730c15d341dc981 fix Issue 17130 - ambiguous implicit super call

[Issue 15428] __traits(compiles, super()) cause error "multiple constructor calls" later

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15428 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d23913c8971766a461e2a973dd9c7fccbad90793 Fix issue 15428 - Properly detach the temporary scope for

[Issue 17123] [REG 2.073] Issues with return @safe inference

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17123 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/74f7a29935fe55a718a7bb92248e3c455bb4e105 fix Issue 17123 - [REG 2.073] Issues with return @safe

[Issue 15676] The compiler does not preserve @disable while generating .di files

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15676 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b2aa1ead04afb58e35513bfda439614125c656d4 Fix issue 15676 - Don't omit the attributes for the postblit

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Timon Gehr via Digitalmars-d
On 24.02.2017 16:29, Chris Wright wrote: On Fri, 24 Feb 2017 09:14:24 +0200, ketmar wrote: forget about "-release" dmd arg. forget about "-boundscheck=off". no, really, they won't do you any good. after all, catching a bug in your program when it doesn't run in controlled environment is even

[Issue 17223] New: Inconsistency between opDispatch explicit/implicit usage

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17223 Issue ID: 17223 Summary: Inconsistency between opDispatch explicit/implicit usage Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 17215] [Reg 2.073] ICE(cgcod.c:findreg) with SIMD and -O -inline

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17215 Martin Nowak changed: What|Removed |Added Keywords||pull --- Comment #5 from

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 24 February 2017 at 14:35:44 UTC, Jack Stouffer wrote: On Friday, 24 February 2017 at 13:38:57 UTC, Moritz Maxeiner wrote: This isn't evidence that memory safety is "the future", though. This is evidence that people do not follow basic engineering practices (for whatever seemingly

[Issue 11703] Typedef properties should not be of the original type

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11703 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/5fedf3503d73cead36a33260ba3efcc39847b8ce fix issue 11703, Typedef properties should not be of

[Issue 8471] std.stdio.readf should be @trusted

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8471 github-bugzi...@puremagic.com changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 16442] FrontTransversal fails with empty ranges

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16442 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/41c2d14658817419cb335a42656130b7aa2959f6 Fix Issue 16442 - FrontTransversal fails with empty

[Issue 8260] * used three or more times on an array inside std.format.formattedRead and not guarded by template constraint

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8260 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/c34561b284efcf4eb54701e78f3a04813f710437 Fix issue #8260 - allow only pointers as formattedRead

[Issue 17196] [Reg 2.074] isUnsigned!bool now true

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17196 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/58c91e1a2cbe0658a114bac87ebaed05fd630f88 Issue 17196 - [Reg 2.074] isUnsigned!bool now true

[Issue 17177] AutoImplement fails on function overload sets with "cannot infer type from overloaded function symbol"

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17177 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/085902b3d68fe692d020b6b0c31c63deb2a5d987 fix issue 17177. AutoImplement fails on function

[Issue 16824] std.experimental.allocator.dispose leaks memory for arrays of more than 1 dimension

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16824 --- Comment #13 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/64a0814ae426749a70decc5382b2fb3365a52a3e Issue 16824: fix experimental

[Issue 17154] std.conv.toChars doesn't support $ in slicing

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17154 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d5ae07f0f125bdefe92b4035dfb35f613dbf9a8a Fix Issue 17154 - Added opDollar to std.conv.toChars

[Issue 17139] [BLOCKING] dscanner needs to handle 'scope' function attributes

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17139 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/4fab50175481d9b1c00ae168c444580de92f258c fix issue 17139 - dscanner needs to handle 'scope'

[Issue 17215] [Reg 2.073] ICE(cgcod.c:findreg) with SIMD and -O -inline

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17215 Martin Nowak changed: What|Removed |Added Summary|ICE(cgcod.c:findreg) with |[Reg 2.073]

[Issue 16470] Segfault with negative array length

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16470 --- Comment #6 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/2d38937e3ff6597a143e83cf2d2d38c76b117d56 Fix issue 16470: Segfault with negative array

[Issue 17161] [REG 2.072.2] Massive Regex Slowdown

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17161 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/5a2491a847beb035b37ee2a270029499065b1919 Fix Issue 17161 - Revert all changes to std.regex from

[Issue 17153] std.container.array.Array cannot be used in @nogc code

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17153 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/2a97fb42345ff1f238510e0ca03c08497d530d53 Merge pull request #5036 from JackStouffer/nogc-Array

[Issue 9615] std.conv.parse!(T[]) fails on trailing comma

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9615 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/307675ad75230efa5bd7d6c5cb4ea38b7a23694d fix issue 9615, std.conv.parse!(T[]) should allow a

[Issue 16999] takeOne popFront/Back does not pop the source range

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16999 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d60f32c3b92a44e6b9b7f6e9183b298c47d1f71d Merge pull request #4984 from dukc/takeOneFix --

[Issue 17215] ICE(cgcod.c:findreg) with SIMD and -O -inline

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17215 --- Comment #4 from Martin Nowak --- Digger points to https://github.com/dlang/dmd/pull/6176 for having introduced this. --

[Issue 17116] std.typecons.ReplaceType is not able to process const delegate

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17116 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/181db425c9f19b0fa20f0c2c6cd9287922a640ae fix issue 17116 - std.typecons.ReplaceType is not able

[Issue 17222] New: assert in compiler caused by opDispatch

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17222 Issue ID: 17222 Summary: assert in compiler caused by opDispatch Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority:

[Issue 16991] Make writeln documentation palatable

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16991 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d7f6cc337e9ad1d122aa721d5862d113f6ab709c Fix Issue 16991 - Make writeln documentation palatable

[Issue 17176] https://dlang.org/phobos/std_stdio.html#.File.tmpfile broken link

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17176 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/565ab34cb0e83ba8149812bf6c580a1becc1ab1d fix issue 17176 -

[Issue 10900] Mersenne Twister should have a 64-bit (ulong) version

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10900 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/45c515f267b687032b6672921d28b5c7938f6154 Add 64-bit implementation of MersenneTwisterEngine --

[Issue 17217] std.net.isemail.isEmail doesn't work with non char arrays

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17217 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a91b610ce18e0477ed9b9757e619797f93baaa77 Fix issue 17217 - std.net.isemail.isEmail doesn't work

[Issue 17195] [Reg 2.074] isFloatingPoint!cfloat is now true

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17195 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/76dd6fe33baffb1ecfc14a192634f0ec51fb7345 Issue 17195 - [Reg 2.074] isFloatingPoint!cfloat is

[Issue 8471] std.stdio.readf should be @trusted

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8471 --- Comment #16 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/882a1fb8f62b872f3463e9fca2b2e1e04d36effb Fix issue #8471 - allow only pointers as readf

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Dukc via Digitalmars-d
On Friday, 24 February 2017 at 15:15:00 UTC, Ola Fosheim Grøstad wrote: Chainsaws are effective, but dangerous. So you should have both training and use safety equipment. Training and safety equipment is available for C-like languages (to the level of provable correctness), and such that it

Re: Serializer class

2017-02-24 Thread houdoux09 via Digitalmars-d-learn
I'm pretty sure you need to use "value.tupleof[i][0]" instead of "mm[0]" as well. it does not work but I found a solution, that's what I do : abstract class BaseClass { uint[] a = [9, 10, 5]; } override class Test : BaseClass { int t = 0; string s = "holla"; } public static

[Issue 17196] [Reg 2.074] isUnsigned!bool now true

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17196 --- Comment #4 from Martin Nowak --- Opened issue 17221 for the compiler change. --

[Issue 17221] New: __traits(isUnsigned, bool/char) should be false

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17221 Issue ID: 17221 Summary: __traits(isUnsigned, bool/char) should be false Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread H. S. Teoh via Digitalmars-d
On Fri, Feb 24, 2017 at 06:59:16AM +, Jack Stouffer via Digitalmars-d wrote: > https://bugs.chromium.org/p/project-zero/issues/detail?id=1139 > > A buffer overflow bug caused heartblead 2.0 for hundreds of thousands > of sites. Here we are 57 years after ALGOL 60 which had bounds > checking,

[Issue 17220] invalid code with -m32 -inline and struct that's size_t.sizeof x the size of an assigned enum value

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17220 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17195] [Reg 2.074] isFloatingPoint!cfloat is now true

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17195 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17196] [Reg 2.074] isUnsigned!bool now true

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17196 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Jack Stouffer via Digitalmars-d
On Friday, 24 February 2017 at 15:15:00 UTC, Ola Fosheim Grøstad wrote: I don't really buy into the idea that a single language has to cover all bases. Neither do I. But, the progenitor of that idea is that languages have understood use-cases, and that using them outside of those areas is

[Issue 17220] invalid code with -m32 -inline and struct that's size_t.sizeof x the size of an assigned enum value

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17220 --- Comment #3 from Martin Nowak --- The cmp runs on the `lhs` symbol, while only the `val` symbol get's initialized. Not sure, but seems like the copy got elided. Here is the assembly for when the size of BCValue != size_t.sizeof *

[Issue 17215] ICE(cgcod.c:findreg) with SIMD and -O -inline

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17215 --- Comment #3 from Martin Nowak --- cat > bug.d << CODE alias vec = __vector(int[4]); vec binop(vec a) { vec b = a; return b; } CODE dmd -c -O bug Internal error: backend/cgcod.c 1659 Further reduced, no longer

Re: code.dlang.org major outage

2017-02-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.02.2017 um 14:50 schrieb Moritz Maxeiner: On Friday, 24 February 2017 at 11:22:34 UTC, Sönke Ludwig wrote: [...] Would be good if someone could have a look. Once this is merged, anyone can run this on a server using `./dub-registry --mirror https://code.dlang.org/` and then forward

Re: Step into in debugging.

2017-02-24 Thread ANtlord via Digitalmars-d
On Wednesday, 22 February 2017 at 14:35:14 UTC, drug wrote: Thank you for sharing this! Sarcasm?

[Issue 17182] dconf.org's thankyou page is missing

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17182 John Colvin changed: What|Removed |Added CC|

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Chris Wright via Digitalmars-d
On Fri, 24 Feb 2017 09:14:24 +0200, ketmar wrote: > forget about "-release" dmd arg. forget about "-boundscheck=off". no, > really, they won't do you any good. after all, catching a bug in your > program when it doesn't run in controlled environment is even more > important than catching a bug in

Re: Voting for std.experimental.checkedint

2017-02-24 Thread Robert burner Schadek via Digitalmars-d
checkedint got voted in. With 2 Yes and 2 yes with remarks. I will set the autotester to merge. Thank you @andralex for the hard work.

[Issue 17220] invalid code with -m32 -inline and struct that's size_t.sizeof x the size of an assigned enum value

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17220 Martin Nowak changed: What|Removed |Added Hardware|x86_64 |All Summary|invalid

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 24 February 2017 at 14:35:44 UTC, Jack Stouffer wrote: It's like the new safety features on handheld buzzsaws which make it basically impossible to cut yourself. Should people be using these things safely? Yes. But, accidents happen, so the tool's design takes human behavior into

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Jack Stouffer via Digitalmars-d
On Friday, 24 February 2017 at 13:38:57 UTC, Moritz Maxeiner wrote: This isn't evidence that memory safety is "the future", though. This is evidence that people do not follow basic engineering practices (for whatever seemingly valid reasons - such as a project deadline - at the time).

Re: code.dlang.org major outage

2017-02-24 Thread Seb via Digitalmars-d
On Friday, 24 February 2017 at 11:22:34 UTC, Sönke Ludwig wrote: I used the waiting time during the backup upload to prepare a PR for a mirror mode: https://github.com/dlang/dub-registry/pull/187 Would be good if someone could have a look. Once this is merged, anyone can run this on a server

Re: template parameter inference and introspection

2017-02-24 Thread Meta via Digitalmars-d-learn
On Friday, 24 February 2017 at 11:17:46 UTC, John Colvin wrote: Unfortunately that only works by accident of my example. A counterexample: T foo(Q = float, T = short)(T t) { return t; } alias Typeof(alias v) = typeof(v); template getInstantiation(alias f, T...) { import std.meta;

Re: template parameter inference and introspection

2017-02-24 Thread John Colvin via Digitalmars-d-learn
On Friday, 24 February 2017 at 14:06:22 UTC, Meta wrote: On Friday, 24 February 2017 at 11:17:46 UTC, John Colvin wrote: Unfortunately that only works by accident of my example. A counterexample: T foo(Q = float, T = short)(T t) { return t; } alias Typeof(alias v) = typeof(v); template

Re: code.dlang.org major outage

2017-02-24 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 24 February 2017 at 11:22:34 UTC, Sönke Ludwig wrote: [...] Would be good if someone could have a look. Once this is merged, anyone can run this on a server using `./dub-registry --mirror https://code.dlang.org/` and then forward incoming requests using a reverse proxy to

Re: If you needed any more evidence that memory safety is the future...

2017-02-24 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 24 February 2017 at 06:59:16 UTC, Jack Stouffer wrote: https://bugs.chromium.org/p/project-zero/issues/detail?id=1139 [...] This isn't evidence that memory safety is "the future", though. This is evidence that people do not follow basic engineering practices (for whatever

Re: Debugging D applications from VS code with webfreak.debug

2017-02-24 Thread FR via Digitalmars-d-learn
On Friday, 24 February 2017 at 03:15:11 UTC, Jerry wrote: You can use the C++ plugin, which provides a debugger. Just make sure you aren't using optlink, I don't think it generates compatible files. Also you might need to use "-gc" which generates debug names to be in C format.

Calling all D template gurus: exposing the overload/template matching system via std.traits

2017-02-24 Thread John Colvin via Digitalmars-d
In keeping with "design by introspection" I've been wanting to write library code that statically inspects the abilities of the entities it's passed and reacts accordingly. Unfortunately, this approach tends to hide implementation mistakes: there's no general way to distinguish between "this

Re: Serializer class

2017-02-24 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-02-22 20:13, thedeemon wrote: On Wednesday, 22 February 2017 at 18:34:26 UTC, houdoux09 wrote: void Read(T)(T value) { foreach(i, mm; value.tupleof) { writeln(__traits(identifier, value.tupleof[i]), " = ", mm); if(isArray!(typeof(mm))) { Read(mm[0]);

Re: Class Order Style

2017-02-24 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-02-20 14:47, Jolly James wrote: How to sort the members of a class? like: 1. properties then 2. private 3. methods 4. ctors ... and so on. are there any recommendations? In my opinion: 1. Manifest constants (enum) 2. Static variables 3. Instance variables 4. Constructors 5.

[Issue 17215] ICE(cgcod.c:findreg) with SIMD and -O -inline

2017-02-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17215 Martin Nowak changed: What|Removed |Added Hardware|All |x86_64 OS|All

Re: code.dlang.org major outage

2017-02-24 Thread Sönke Ludwig via Digitalmars-d
Am 23.02.2017 um 23:55 schrieb Sönke Ludwig: The virtual server that is running code.dlang.org has frozen about an hour ago and fails to boot further than to the bootloader. Initial attempts to recover from within Grub have failed and it's unclear what the root cause is. I will instead set up a

  1   2   >