[Issue 10602] Better error message for wrong template lambda given to function

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10602 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 17477] DMD error message for delegate with wrong attributes is very confusing

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17477 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 9423] Missed conversion of lambda literal with ref argument

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9423 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 17477] DMD error message for delegate with wrong attributes is very confusing

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17477 Vladimir Panteleev changed: What|Removed |Added Hardware|x86_64 |All

[Issue 10332] Dustmite should be distributed with the zipped release

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10332 Vladimir Panteleev changed: What|Removed |Added Status|REOPENED

[Issue 5660] yield syntax sugar

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5660 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 6856] Absence of in contract (precondition) on override of method that has one is badly designed

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6856 Vladimir Panteleev changed: What|Removed |Added Keywords||pull

[Issue 10276] Nested structs with constructors get a context pointer even if they don't need one

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10276 Vladimir Panteleev changed: What|Removed |Added Summary|Nested structs get a

[Issue 14478] isInputRange should allow ranges of non-copyable elements

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14478 Vladimir Panteleev changed: What|Removed |Added Summary|isInputRange failed to

Re: Update to Bare Metal STM32F4 (ARM Cortex-M4) LCD Demo Proof of Concept

2017-07-20 Thread Andrey via Digitalmars-d-announce
On Friday, 21 July 2017 at 00:27:09 UTC, Mike wrote: On Thursday, 20 July 2017 at 17:09:40 UTC, Mr.D wrote: Thanks for your work with bare metal MCUs! I am dreaming that someday I can program smart house IoT automation on D. You already can; it just may not be the most professional

[Issue 15303] std.json: consider JSON5 support

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15303 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 17076] [scope] compiling identity function template with -dip1000 causes error

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17076 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 8914] Wrong `escaping reference` error on returning static array

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8914 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 4104] No way to get notified about D runtime termination.

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4104 Vladimir Panteleev changed: What|Removed |Added Keywords||patch

[Issue 4104] No way to get notified about D runtime termination.

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4104 Vladimir Panteleev changed: What|Removed |Added Hardware|Other |All

[Issue 16618] [REG2.055] Segmentation fault in DMD with cyclic alias this and unknown identifier

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16618 Vladimir Panteleev changed: What|Removed |Added Hardware|x86 |All

[Issue 10256] Fix .deb file production

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10256 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 7833] [2.059 Beta] Changelog should clearly mention struct literal/opCmp/opEquals/toHash changes

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7833 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 11521] Collision of templates instantiated with different same-named locals

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11521 Vladimir Panteleev changed: What|Removed |Added Keywords|

[Issue 6843] Function to check whether std.conv.to will succeed

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6843 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 6840] std.conv.maybeTo

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6840 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 5033] Add explicit 'frame context' and 'this' type modifiers for callback functions

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5033 --- Comment #1 from Vladimir Panteleev --- I believe that this enhancement request is today possible to implement on top of D's existing introspection / metaprogramming / code-generation features. In either case,

[Issue 5033] Add explicit 'frame context' and 'this' type modifiers for callback functions

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5033 Vladimir Panteleev changed: What|Removed |Added Status|NEW

Re: How does one determine the UDAs of all symbols contained in a given module?

2017-07-20 Thread Andrew Edwards via Digitalmars-d-learn
On Wednesday, 19 July 2017 at 14:23:25 UTC, Jacob Carlborg wrote: Here's an example: Thanks... Minus the AliasSeq bit, this is pretty much what I've been working with since talking to Brain. The main problem I'm facing is that it fails to compileif any of the symbols in the imported module

[Issue 7042] Allocation of 'creal' array with 'new' fails when linking without /noi switch

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7042 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 17604] Reject mutable fields initialized with reference types to data segment

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17604 Vladimir Panteleev changed: What|Removed |Added Keywords||safe

[Issue 15612] Break immutability with default initialisers

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15612 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 10364] Mac OS 10.8 program crash

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10364 Vladimir Panteleev changed: What|Removed |Added Component|dmd

Re: How to debug in vscode with mago-mi?

2017-07-20 Thread Domain via Digitalmars-d-learn
On Thursday, 20 July 2017 at 15:31:55 UTC, WebFreak001 wrote: On Monday, 17 July 2017 at 08:44:46 UTC, Domain wrote: Could anyone show me how to debug in vscode with mago-mi? I have installed vscode with Native Debug, SDLang. I have tried dlang-vscode and code-d. [...] Is the application

Re: Update to Bare Metal STM32F4 (ARM Cortex-M4) LCD Demo Proof of Concept

2017-07-20 Thread Mike via Digitalmars-d-announce
On Thursday, 20 July 2017 at 17:09:40 UTC, Mr.D wrote: Thanks for your work with bare metal MCUs! I am dreaming that someday I can program smart house IoT automation on D. You already can; it just may not be the most professional experience. If you have the hardware and the time, do it!

Re: Solving the spurious forward/cyclic reference errors in DMD

2017-07-20 Thread Elie Morisse via Digitalmars-d
I'll start working on this tomorrow, so if you believe this effort will be in vain, please leave a comment.

Re: Base class' constructor is not implicitly inherited for immutable classes. A bug or a feature?

2017-07-20 Thread arturg via Digitalmars-d-learn
On Wednesday, 19 July 2017 at 16:00:56 UTC, Piotr Mitana wrote: Hello, I have this code: immutable class Base { this() {} } immutable class Derived : Base {} void main() { new immutable Derived(); } I'd like class Derived to automatically inherit the default constructor from

[Issue 17673] regex(["\\\\\\\\|\\\\\"", "\"|$"]) - wrong whichPattern

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17673 Nikolay (unDEFER) Krivchenkov changed: What|Removed |Added CC|

[Issue 17673] New: regex(["\\\\\\\\|\\\\\"", "\"|$"]) - wrong whichPattern

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17673 Issue ID: 17673 Summary: regex(["|\"", "\"|$"]) - wrong whichPattern Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: Work on ARM backend for DMD started

2017-07-20 Thread Walter Bright via Digitalmars-d-announce
On 7/20/2017 9:22 AM, solidstate1991 wrote: A few things you should be aware before you trash the reference compiler for D: I wouldn't be discouraged by the nay-sayers. If you want to build an ARM back end for it, do it! About every project I've ever embarked on, including D, started with

Re: The X Macro using D

2017-07-20 Thread Walter Bright via Digitalmars-d
On 7/20/2017 2:21 PM, Stefan Koch wrote: Please tell me this is not going to get into dmd :) templates are so much more expensive then macros. (Well, for now :) ) Those templates can and should be replaced by CTFE. If you like, present the CTFE solution. Should be fun!

Re: The X Macro using D

2017-07-20 Thread Stefan Koch via Digitalmars-d
On Thursday, 20 July 2017 at 21:17:45 UTC, Walter Bright wrote: template Y(alias X) { enum Y = [ // id reg mask ty X!("AH", 4, mAX, TYuchar), X!("AL", 0, mAX, TYuchar), X!("AX", 8, mAX, TYushort), X!("BH", 7, mBX, TYuchar),

Re: An Issue I Wish To Raise Awareness On

2017-07-20 Thread Jonathan M Davis via Digitalmars-d
On Thursday, July 20, 2017 07:40:35 Dominikus Dittes Scherkl via Digitalmars-d wrote: > On Wednesday, 19 July 2017 at 22:35:43 UTC, Jonathan M Davis > > wrote: > > The issue isn't the object being destroyed. It's what it refers > > to via its member variables. For instance, what if an object > >

The X Macro using D

2017-07-20 Thread Walter Bright via Digitalmars-d
Some time ago, I wrote about the X Macro in C: https://digitalmars.com/articles/b51.html I used it from time to time in C code. It's one of the things I actually like about the C preprocessor. But in translating the aged C code to D it was time to make X work in D. Here's the C code,

[Issue 13039] combinations

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13039 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

Re: static foreach is now in github master

2017-07-20 Thread Seb via Digitalmars-d-announce
On Thursday, 20 July 2017 at 20:33:47 UTC, Steven Schveighoffer wrote: On 7/20/17 4:08 PM, Seb wrote: On Thursday, 20 July 2017 at 19:53:46 UTC, Jack Stouffer wrote: On Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote: https://is.gd/1TCQOh Hmmm, that code is printing 0 1 2 3 0 1 2 3 for

Re: static foreach is now in github master

2017-07-20 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/20/17 4:08 PM, Seb wrote: On Thursday, 20 July 2017 at 19:53:46 UTC, Jack Stouffer wrote: On Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote: https://is.gd/1TCQOh Hmmm, that code is printing 0 1 2 3 0 1 2 3 for me. Shouldn't it just be printing once? I bet you are using `rdmd`?

Re: static foreach is now in github master

2017-07-20 Thread Seb via Digitalmars-d-announce
On Thursday, 20 July 2017 at 19:53:46 UTC, Jack Stouffer wrote: On Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote: https://is.gd/1TCQOh Hmmm, that code is printing 0 1 2 3 0 1 2 3 for me. Shouldn't it just be printing once? I bet you are using `rdmd`? It runs dmd twice on your main

Re: static foreach is now in github master

2017-07-20 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/20/17 3:53 PM, Jack Stouffer wrote: On Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote: https://is.gd/1TCQOh Hmmm, that code is printing 0 1 2 3 0 1 2 3 for me. Shouldn't it just be printing once? I think it's because it's using rdmd, and that runs dmd once to generate

[Issue 16431] rdmd runs dmd twice for single-files with no dependencies

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16431 Seb changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: static foreach is now in github master

2017-07-20 Thread Jack Stouffer via Digitalmars-d-announce
On Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote: https://is.gd/1TCQOh Hmmm, that code is printing 0 1 2 3 0 1 2 3 for me. Shouldn't it just be printing once?

Re: Release D 2.075.0

2017-07-20 Thread Andre Pany via Digitalmars-d-announce
On Wednesday, 19 July 2017 at 15:36:22 UTC, Martin Nowak wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 [...] Could you please create a post on reddit? Kind regards André

Re: proposed @noreturn attribute

2017-07-20 Thread Yuxuan Shui via Digitalmars-d
On Wednesday, 19 July 2017 at 10:35:37 UTC, Stefan Koch wrote: On Wednesday, 19 July 2017 at 10:24:35 UTC, Marc Schütz wrote: On Sunday, 16 July 2017 at 20:44:13 UTC, Andrei Alexandrescu wrote: Perhaps we go the inverse route and define the bottom type as typeof(*null). Would that simplify

Re: Array of Template instantiations

2017-07-20 Thread Meta via Digitalmars-d-learn
On Thursday, 20 July 2017 at 13:11:56 UTC, Alex wrote: On Thursday, 20 July 2017 at 12:33:43 UTC, Alex wrote: The Problem is, i dont know what type WHAT_TYPE is / i don´t know how to build a loopable something of futures. Ok, i think i understood now. my function `load` returns

Re: How to replace pairs tags with regexp

2017-07-20 Thread Suliman via Digitalmars-d-learn
Ali Thanks! I opened answer form before you answered me!

Re: Release D 2.075.0

2017-07-20 Thread Patrick Schluter via Digitalmars-d-announce
On Thursday, 20 July 2017 at 12:10:14 UTC, Adrian Matoga wrote: On Thursday, 20 July 2017 at 07:19:03 UTC, Patrick Schluter wrote: version 2.067 that still had the C++ frontend took more than 100 seconds. I can hardly believe it. I remember versions 2.05x building in about 11 seconds. 1

How to Select suitable PMDC Motor?

2017-07-20 Thread Marklin Pinazo via Digitalmars-d
At the point when the engine is working, curls and commutator pivot, be that as it may, magnet and brushes don't turn. The substituting curl current is pivoted with the assistance of the engine commutator and the brushes. As the voltage rises, the brush dc engine speed increments as well. The

Re: Release D 2.075.0 does not install on Windows 10 with VS2017

2017-07-20 Thread Seb via Digitalmars-d-announce
On Thursday, 20 July 2017 at 17:44:29 UTC, Jolly James wrote: On Thursday, 20 July 2017 at 16:28:54 UTC, jan wrote: seems like i am not the first one to have that problem. please fix. everything working fine from here :) Maybe you should state what exactly is not working for you and paste

Re: How to replace pairs tags with regexp

2017-07-20 Thread Suliman via Digitalmars-d-learn
Question above do not actual now. Now I have got next problem. import std.stdio; import std.regex; import std.file; void main() { auto text = "#Header my header text ##SubHeader my sub header text ###Sub3Header my sub 3 text #Header2 my header2 text";

Re: How to replace pairs tags with regexp

2017-07-20 Thread Ali Çehreli via Digitalmars-d-learn
On 07/20/2017 06:39 AM, Suliman wrote: I have got next code: import std.stdio; import std.regex; import std.file; void main() { auto text = readText("book.txt"); auto inlineCodeBlock = regex("`([^`\n]+)`"); auto bigCodeBlock = regex(r"`{3}[\s\S]*?`{3}"); foreach(t;

Re: Release D 2.075.0 does not install on Windows 10 with VS2017

2017-07-20 Thread Jolly James via Digitalmars-d-announce
On Thursday, 20 July 2017 at 16:28:54 UTC, jan wrote: seems like i am not the first one to have that problem. please fix. everything working fine from here :) Maybe you should state what exactly is not working for you and paste some error messages...

Re: D easily overlooked?

2017-07-20 Thread porter via Digitalmars-d
On Thursday, 20 July 2017 at 17:04:14 UTC, Wulfklaue wrote: On Thursday, 20 July 2017 at 16:15:43 UTC, porter wrote: i did the same, but use for windows programs AWD Modula. its free, compiles fast and is used commercially. AWD Modula? You mean Modula 2? yes https://www.modula2.org/adwm2/

Re: Update to Bare Metal STM32F4 (ARM Cortex-M4) LCD Demo Proof of Concept

2017-07-20 Thread Mr.D via Digitalmars-d-announce
Thanks for your work with bare metal MCUs! I am dreaming that someday I can program smart house IoT automation on D.

Re: D easily overlooked?

2017-07-20 Thread Wulfklaue via Digitalmars-d
On Thursday, 20 July 2017 at 16:15:43 UTC, porter wrote: i did the same, but use for windows programs AWD Modula. its free, compiles fast and is used commercially. AWD Modula? You mean Modula 2?

Re: opEquals nothrow

2017-07-20 Thread w0rp via Digitalmars-d-learn
On Thursday, 20 July 2017 at 15:10:24 UTC, Aldo wrote: On Thursday, 20 July 2017 at 14:59:50 UTC, Steven Schveighoffer wrote: On 7/20/17 10:38 AM, Aldo wrote: Hello, im tring to add nothrow keyword in my code, but compilation fails : function 'object.opEquals' is not nothrow its a simple

Release D 2.075.0 does not install on Windows 10 with VS2017

2017-07-20 Thread jan via Digitalmars-d-announce
seems like i am not the first one to have that problem. please fix.

Re: Work on ARM backend for DMD started

2017-07-20 Thread solidstate1991 via Digitalmars-d-announce
On Friday, 7 July 2017 at 11:09:27 UTC, Temtaime wrote: DMD is a piece of shit, and adding another one ARM backend with all those bugs and low performance instead of improving ldc is wasting efforts. The only use of dmd is development because of compilation speed. But some persons have

Re: D easily overlooked?

2017-07-20 Thread porter via Digitalmars-d
On Thursday, 20 July 2017 at 15:40:04 UTC, Wulfklaue wrote: Windows: Download, install, runs. It integrates perfectly with the Visual Studio Code plugin. Linux a simple apt-get command. No need to download a deb or run a shell script. i did the same, but use for windows programs AWD

Re: D easily overlooked?

2017-07-20 Thread porter via Digitalmars-d
On Thursday, 20 July 2017 at 15:40:04 UTC, Wulfklaue wrote: After going back recently to good old Pascal. More specific the freepascal compiler combined with Visual Studio Code + Omnipascal, ... it felt just more easy. In a few days time after reading up all the details, i got myself a nice

WebConfig - a vibe.d HTML form generator & validator from D structs

2017-07-20 Thread WebFreak001 via Digitalmars-d-announce
I just released a vibe.d library that allows you to turn any D struct into an editable HTML5 compatible form with live JS updates but also normal no-JS updates with nearly the same experience. It basically feels like you don't need to write any boilerplate HTML code anymore but instead write D

Re: opEquals nothrow

2017-07-20 Thread Anonymouse via Digitalmars-d-learn
On Thursday, 20 July 2017 at 15:10:24 UTC, Aldo wrote: extern(C) nothrow { void onMouseClick(GLFWwindow* window, int button, int action, int d) { try { // my code } catch { } } } Tangent but an easy way of nothrowing:

Re: D easily overlooked?

2017-07-20 Thread Wulfklaue via Digitalmars-d
On Sunday, 16 July 2017 at 08:37:53 UTC, Ecstatic Coder wrote: I sincerely appreciate the effort, really, but admit that there is still a HUGE difference between how D and more popular languages like Python, Go, etc are advertised. I'm still not convinced that D's way is the best in order to

Re: opEquals nothrow

2017-07-20 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/20/17 11:10 AM, Aldo wrote: On Thursday, 20 July 2017 at 14:59:50 UTC, Steven Schveighoffer wrote: On 7/20/17 10:38 AM, Aldo wrote: Hello, im tring to add nothrow keyword in my code, but compilation fails : function 'object.opEquals' is not nothrow its a simple comparison between 2

Re: How to debug in vscode with mago-mi?

2017-07-20 Thread WebFreak001 via Digitalmars-d-learn
On Monday, 17 July 2017 at 08:44:46 UTC, Domain wrote: Could anyone show me how to debug in vscode with mago-mi? I have installed vscode with Native Debug, SDLang. I have tried dlang-vscode and code-d. [...] Is the application actually being put in bin/app.exe? Also try a different

[Issue 13806] std.bitmanip.BitArray -- use of methods named init() messes up templates

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13806 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14098] std.typecons.wrap should allow wrapping a struct

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14098 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

Re: opEquals nothrow

2017-07-20 Thread Aldo via Digitalmars-d-learn
On Thursday, 20 July 2017 at 14:59:50 UTC, Steven Schveighoffer wrote: On 7/20/17 10:38 AM, Aldo wrote: Hello, im tring to add nothrow keyword in my code, but compilation fails : function 'object.opEquals' is not nothrow its a simple comparison between 2 objects. How to make opEquals

Re: opEquals nothrow

2017-07-20 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/20/17 10:38 AM, Aldo wrote: Hello, im tring to add nothrow keyword in my code, but compilation fails : function 'object.opEquals' is not nothrow its a simple comparison between 2 objects. How to make opEquals nothrow ? You can't. Object.opEquals is not nothrow, so object.opEquals is

Re: opEquals nothrow

2017-07-20 Thread bauss via Digitalmars-d-learn
On Thursday, 20 July 2017 at 14:38:03 UTC, Aldo wrote: Hello, im tring to add nothrow keyword in my code, but compilation fails : function 'object.opEquals' is not nothrow its a simple comparison between 2 objects. How to make opEquals nothrow ? thanks Could you show some code.

[Issue 17664] Deprecate implicit casting between shared and unshared

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17664 --- Comment #3 from Steven Schveighoffer --- Making a complete independent copy of a value is not sharing, it's copying. shared doesn't care about the semantic meaning of your integer. It only cares if multiple threads have

Re: Release D 2.075.0

2017-07-20 Thread jj via Digitalmars-d-announce
wow, how nice - but it is not installed correctly with VS2017. While installing, i am told that 64bit will not work. what a SH.T you guys should get your act together - just once. it's always a real experience to install software and have problems. Nice experience!!

opEquals nothrow

2017-07-20 Thread Aldo via Digitalmars-d-learn
Hello, im tring to add nothrow keyword in my code, but compilation fails : function 'object.opEquals' is not nothrow its a simple comparison between 2 objects. How to make opEquals nothrow ? thanks

Re: If Statement with Declaration

2017-07-20 Thread Moritz Maxeiner via Digitalmars-d
On Thursday, 20 July 2017 at 14:18:48 UTC, Jack Stouffer wrote: On Thursday, 20 July 2017 at 14:05:36 UTC, Iakh wrote: It is not about reduce number of lines. It is about binding related things in one statement. Even so, it's already been shown in this thread that the same effect can be

Re: If Statement with Declaration

2017-07-20 Thread Jack Stouffer via Digitalmars-d
On Thursday, 20 July 2017 at 14:05:36 UTC, Iakh wrote: It is not about reduce number of lines. It is about binding related things in one statement. Even so, it's already been shown in this thread that the same effect can be achieved via a block statement (doing exactly what it was designed

Re: Base class' constructor is not implicitly inherited for immutable classes. A bug or a feature?

2017-07-20 Thread Eugene Wissner via Digitalmars-d-learn
On Wednesday, 19 July 2017 at 16:00:56 UTC, Piotr Mitana wrote: Hello, I have this code: immutable class Base { this() {} } immutable class Derived : Base {} void main() { new immutable Derived(); } I'd like class Derived to automatically inherit the default constructor from

Re: If Statement with Declaration

2017-07-20 Thread Iakh via Digitalmars-d
On Wednesday, 19 July 2017 at 15:41:18 UTC, Jack Stouffer wrote: On Wednesday, 19 July 2017 at 13:30:56 UTC, sontung wrote: Thoughts on this sort of feature? To be frank, I don't think that helping the programmer reduce the line count in their program by one line is worth further

Re: If Statement with Declaration

2017-07-20 Thread Iakh via Digitalmars-d
On Wednesday, 19 July 2017 at 15:31:08 UTC, ag0aep6g wrote: On 07/19/2017 03:30 PM, sontung wrote: So I was thinking of some sort of syntax like this: if(int i = someFunc(); i >= 0) { // use i } Thoughts on this sort of feature? I'd prefer a new variant of `with`:

Re: struct constructors and destructors.

2017-07-20 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 19 July 2017 at 14:09:32 UTC, SrMordred wrote: Hm, isnt that wrong? Did my post even go through? http://forum.dlang.org/post/udaxeyujrafklzpww...@forum.dlang.org What's going on here is actually pretty simple. Though calling a destructor on a default-initialized struct

Re: Base class' constructor is not implicitly inherited for immutable classes. A bug or a feature?

2017-07-20 Thread bauss via Digitalmars-d-learn
On Wednesday, 19 July 2017 at 16:00:56 UTC, Piotr Mitana wrote: Hello, I have this code: immutable class Base { this() {} } immutable class Derived : Base {} void main() { new immutable Derived(); } I'd like class Derived to automatically inherit the default constructor from

[Issue 17664] Deprecate implicit casting between shared and unshared

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17664 --- Comment #2 from anonymous4 --- The idea that sharing is opt out contradicts the idea behind shared qualifier. --

How to replace pairs tags with regexp

2017-07-20 Thread Suliman via Digitalmars-d-learn
I have got next code: import std.stdio; import std.regex; import std.file; void main() { auto text = readText("book.txt"); auto inlineCodeBlock = regex("`([^`\n]+)`"); auto bigCodeBlock = regex(r"`{3}[\s\S]*?`{3}"); foreach(t;

Re: Array of Template instantiations

2017-07-20 Thread Alex via Digitalmars-d-learn
On Thursday, 20 July 2017 at 12:33:43 UTC, Alex wrote: The Problem is, i dont know what type WHAT_TYPE is / i don´t know how to build a loopable something of futures. Ok, i think i understood now. my function `load` returns `KpiResponseEntity` so Future!(KpiResponseEntity)[] futures; seems

Re: If Statement with Declaration

2017-07-20 Thread Moritz Maxeiner via Digitalmars-d
On Wednesday, 19 July 2017 at 15:31:08 UTC, ag0aep6g wrote: On 07/19/2017 03:30 PM, sontung wrote: So I was thinking of some sort of syntax like this: if(int i = someFunc(); i >= 0) { // use i } Thoughts on this sort of feature? I'd prefer a new variant of `with`:

Make sure that every function in Phobos has a public example

2017-07-20 Thread Seb via Digitalmars-d
Examples are a great way to explore functions on Phobos. They provide an intuitive, playful alternative to reading the docs - especially now that they are interactive [1]. They are so important that people even report bugs if they don't exist [2]. However, Phobos still doesn't come with a

Array of Template instantiations

2017-07-20 Thread Alex via Digitalmars-d-learn
Hi, i don't even know if the subject makes any sense :) What i want to achieve is: instead of making: auto v_a = async( , queryA ); auto v_b = async( , queryB ); auto v_c = async( , queryC ); ( async is a function from vibe and returns a "Future" - see

Update to Bare Metal STM32F4 (ARM Cortex-M4) LCD Demo Proof of Concept

2017-07-20 Thread Mike via Digitalmars-d-announce
A few years ago I created a bare metal demo on an ARM Cortex-M4 microcontroller entirely in D. It was just a demonstration that one could do bare metal programming for microcontrollers in D without any dependencies on C or assembly. It was also a proof of some ideas I had about leveraging

Re: If Statement with Declaration

2017-07-20 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 19 July 2017 at 13:30:56 UTC, sontung wrote: Thoughts on this sort of feature? This doesn't enable anything new, and breaks readability conventions.

Re: Release D 2.075.0

2017-07-20 Thread Adrian Matoga via Digitalmars-d-announce
On Thursday, 20 July 2017 at 07:19:03 UTC, Patrick Schluter wrote: version 2.067 that still had the C++ frontend took more than 100 seconds. I can hardly believe it. I remember versions 2.05x building in about 11 seconds.

Re: proposed @noreturn attribute

2017-07-20 Thread Timon Gehr via Digitalmars-d
On 20.07.2017 00:21, Tobias Müller wrote: Timon Gehr wrote: [...] What I am saying is: in a language with a bottom type, we can create a function: T f(T)(Bottom b){ return b; // assuming b converts to all types implicitly. } Within the function body, b is a value of

[Issue 17671] std.format example is not compiles

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17671 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 17672] Example from std.format throws exceptions

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17672 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 17670] Std.bitmanip module has no (runnable) examples

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17670 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

Re: If Statement with Declaration

2017-07-20 Thread Olivier FAURE via Digitalmars-d
On Wednesday, 19 July 2017 at 20:42:33 UTC, Steven Schveighoffer wrote: I remember reading a discussion about using with statements to do this earlier as well, but I can't find it. -Steve I don't think this is the discussion you're talking about, but this does bring DIP 1005 to mind:

[Issue 1998] std.bitarray should have setAll / opSliceAssign(bool) etc

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1998 RazvanN changed: What|Removed |Added CC|

Re: An Issue I Wish To Raise Awareness On

2017-07-20 Thread via Digitalmars-d
On Thursday, 20 July 2017 at 10:19:30 UTC, Kagamin wrote: On Thursday, 20 July 2017 at 07:40:35 UTC, Dominikus Dittes Scherkl wrote: On Wednesday, 19 July 2017 at 22:35:43 UTC, Jonathan M Davis wrote: The issue isn't the object being destroyed. It's what it refers to via its member variables.

  1   2   >