Re: Visual Studio Code code-d serve-d beta release

2017-08-18 Thread Soulsbane via Digitalmars-d-announce
On Saturday, 19 August 2017 at 05:11:13 UTC, Soulsbane wrote: On Thursday, 10 August 2017 at 06:49:23 UTC, Dmitry wrote: On Wednesday, 9 August 2017 at 14:39:12 UTC, WebFreak001 wrote: try using the C/C++ Extension in vscode which uses the visual studio debugger, that one works great on

Re: Visual Studio Code code-d serve-d beta release

2017-08-18 Thread Soulsbane via Digitalmars-d-announce
On Thursday, 10 August 2017 at 06:49:23 UTC, Dmitry wrote: On Wednesday, 9 August 2017 at 14:39:12 UTC, WebFreak001 wrote: try using the C/C++ Extension in vscode which uses the visual studio debugger, that one works great on windows for D OMG, it's really works. Thank you alot! I'll try to

Re: @safe(bool)

2017-08-18 Thread Manu via Digitalmars-d
On 18 August 2017 at 02:32, bitwise via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > This came to mind while working on a set of containers. > > @safety often comes with a performance cost. For example, any container > that wants to give out a range or iterator has to have a ref-counted

ffmpeg

2017-08-18 Thread Johnson Jones via Digitalmars-d-learn
Trying to get it to work. 1. The libraries from the main download site seem to be in coff format for x86. This means they don't really work for dmd. I use omf and I tried to use coffimplib on the lib files and it says they are not import libraries. 2. The x64 version works without issue.

Re: Module Info error

2017-08-18 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 19 August 2017 at 02:07:25 UTC, Johnson Jones wrote: Still getting this! What I don't understand is why I can import certain libraries and they compile fine while others don't! So, moduleInfo is a "function" per module that is created at compilation, right? If one doesn't

Module Info error

2017-08-18 Thread Johnson Jones via Digitalmars-d-learn
Still getting this! What I don't understand is why I can import certain libraries and they compile fine while others don't! So, moduleInfo is a "function" per module that is created at compilation, right? If one doesn't compile the module then the error results, just like standard extern

Re: @safe(bool)

2017-08-18 Thread jmh530 via Digitalmars-d
On Saturday, 19 August 2017 at 00:37:06 UTC, Nicholas Wilson wrote: Having to change the default attributes will be a rare occurrence (embedded (nothrow, nogc final) security critical (safe). My reading of that updated DIP is that you can only change the default attributes by hacking on

[Issue 17581] Document behavior of -betterC

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17581 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17581] Document behavior of -betterC

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17581 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/c7b3c834273118264bc79c7784c6703196b42696 Fix Issue 17581 - Document behavior of -betterC

Re: @safe(bool)

2017-08-18 Thread Nicholas Wilson via Digitalmars-d
On Friday, 18 August 2017 at 23:11:34 UTC, Jonathan M Davis wrote: On Friday, August 18, 2017 03:08:07 Nicholas Wilson via Digitalmars-d wrote: On Friday, 18 August 2017 at 01:43:42 UTC, Jonathan M Davis wrote: If you think that then I have clearly failed to express the DIP at all. It solves

Re: Need help with units library

2017-08-18 Thread Joakim via Digitalmars-d-learn
On Friday, 18 August 2017 at 13:21:06 UTC, alexander1974 wrote: I want to write a library for working with units (lengths, weights, ...). It should allow maths and converting with/between different units (cm to mm, angstrom to meter, ...). [...] I have no opinion on your layout, but have

[Issue 17193] selective imports -> deprecation warnings even if symbol is not used

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17193 --- Comment #3 from b2.t...@gmx.com --- committer, fix also 16577, it's so closed. --

[Issue 17193] selective imports -> deprecation warnings even if symbol is not used

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17193 b2.t...@gmx.com changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 16577] A selective import on a symbol that has overloads leads to duplicate deprecation messages

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16577 b2.t...@gmx.com changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 16577] A selective import on a symbol that has overloads leads to duplicate deprecation messages

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16577 b2.t...@gmx.com changed: What|Removed |Added Summary|A selective import on a |A selective import on a

[Issue 17760] catch block fails to catch Exception subclass when another Exception is in transit

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17760 Walter Bright changed: What|Removed |Added CC|

GtkD on android

2017-08-18 Thread Johnson via Digitalmars-d-learn
Hey Mike, have you put in thought or effort in to getting GtkD working on android? e.g., https://github.com/eugals/GTKAndroid/wiki/Building If I get around to it and no one has beating me before, I will try to compile something like the above and get the gtk libs required then use the new

Re: @safe(bool)

2017-08-18 Thread Nicholas Wilson via Digitalmars-d
On Friday, 18 August 2017 at 15:16:55 UTC, bitwise wrote: On Friday, 18 August 2017 at 01:43:42 UTC, Jonathan M Davis wrote: [...] - Jonathan M Davis Makes sense to me. The first question that comes to mind is if the extra generality provided by DIP 1012 is actually useful, let alone,

Re: @safe(bool)

2017-08-18 Thread Jonathan M Davis via Digitalmars-d
On Friday, August 18, 2017 03:08:07 Nicholas Wilson via Digitalmars-d wrote: > On Friday, 18 August 2017 at 01:43:42 UTC, Jonathan M Davis wrote: > If you think that then I have clearly failed to express the DIP > at all. > It solves exactly that. I completely fail to see how it is a > detriment

Re: Exception chaining and collectException

2017-08-18 Thread Walter Bright via Digitalmars-d
On 8/18/2017 2:09 AM, Don Clugston wrote: I invested quite a lot personally in implementing chained exceptions. But I agree with you. I was actually quite proud that I worked out the nasty corner cases during the initial implementation. As far as I can tell, problems with chained exceptions

Re: Exception chaining and collectException

2017-08-18 Thread Walter Bright via Digitalmars-d
On 8/18/2017 5:07 AM, Steven Schveighoffer wrote: If we are to remove them, what happens when exceptions would normally chain? In C++, throwing an exception while unwinding is a fatal error. More information: https://stackoverflow.com/questions/130117/throwing-exceptions-out-of-a-destructor

Re: real simple delegate question.

2017-08-18 Thread angel via Digitalmars-d-learn
On Friday, 18 August 2017 at 02:38:15 UTC, WhatMeForget wrote: Can someone explain what is the difference between the two? Thanks. module gates; import std.stdio; import std.random; alias Calculator = int delegate(int); Calculator makeCalculator() { static int context = 0; int

Re: Beta 2.076.0

2017-08-18 Thread user1234 via Digitalmars-d-announce
On Friday, 18 August 2017 at 16:52:51 UTC, Martin Nowak wrote: On 08/18/2017 02:58 PM, Martin Nowak wrote: First beta for the 2.076.0 release. This release comes with various phobos additions and lots of improvements for -betterC (changelog entry upcoming). This release will also come with

Re: @safe(bool)

2017-08-18 Thread Timon Gehr via Digitalmars-d
On 18.08.2017 17:16, bitwise wrote: On Friday, 18 August 2017 at 01:43:42 UTC, Jonathan M Davis wrote: [...] - Jonathan M Davis Makes sense to me. The first question that comes to mind is if the extra generality provided by DIP 1012 is actually useful, let alone, worth breaking changes.

[Issue 14246] RAII - proper destruction of partially constructed objects/structs

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14246 --- Comment #11 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/45ca5e35d3de824e104c3049083eb23fa03775c5 Remove wrong changelog entry The fix for issue

Re: GtkD: How to respond to cell edit's?

2017-08-18 Thread Johnson via Digitalmars-d-learn
On Friday, 18 August 2017 at 17:06:42 UTC, Mike Wey wrote: On 18-08-17 02:30, Johnson Jones wrote: On Friday, 18 August 2017 at 00:27:05 UTC, Johnson Jones wrote: [...] Obvious it is easy when you have ID's, but this is meant for the original case where I'm not using ID's. A far as i can

Re: LDC, ARM: unnecessary default initialization

2017-08-18 Thread kinke via Digitalmars-d
On Friday, 18 August 2017 at 12:09:04 UTC, kinke wrote: On Friday, 18 August 2017 at 09:42:25 UTC, Jack Applegame wrote: For some reason, the LDC default initializes the structure, even if initialization of all its members is specified as void. I believe that this is wrong. Afaik, this has

Re: GtkD: How to respond to cell edit's?

2017-08-18 Thread Mike Wey via Digitalmars-d-learn
On 18-08-17 02:30, Johnson Jones wrote: On Friday, 18 August 2017 at 00:27:05 UTC, Johnson Jones wrote: I should also mention that when I use an ID to do what I want(again, something I don't want to do), I also need to get the column that was edited. This is because I'm using one delegate for

Re: Beta 2.076.0

2017-08-18 Thread Martin Nowak via Digitalmars-d-announce
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 08/18/2017 02:58 PM, Martin Nowak wrote: > First beta for the 2.076.0 release. > > This release comes with various phobos additions and lots of > improvements for -betterC (changelog entry upcoming). This release will also come with static

Re: Different Output after each execution

2017-08-18 Thread Moritz Maxeiner via Digitalmars-d-learn
On Friday, 18 August 2017 at 15:46:13 UTC, Vino.B wrote: On Friday, 18 August 2017 at 11:24:24 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:50:28 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:06:04 UTC, Vino wrote: On Friday, 18 August 2017 at 08:34:39 UTC, ikod

Re: Different Output after each execution

2017-08-18 Thread Vino.B via Digitalmars-d-learn
On Friday, 18 August 2017 at 11:24:24 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:50:28 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:06:04 UTC, Vino wrote: On Friday, 18 August 2017 at 08:34:39 UTC, ikod wrote: On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B

Re: @safe(bool)

2017-08-18 Thread bitwise via Digitalmars-d
On Friday, 18 August 2017 at 01:43:42 UTC, Jonathan M Davis wrote: [...] - Jonathan M Davis Makes sense to me. The first question that comes to mind is if the extra generality provided by DIP 1012 is actually useful, let alone, worth breaking changes. The rationale section of the DIP only

Re: Named multi-imports

2017-08-18 Thread Olivier FAURE via Digitalmars-d
On Friday, 18 August 2017 at 09:18:42 UTC, Timon Gehr wrote: Any downsides? ... - It introduces a new type that would not really be necessary. This is avoidable, at the cost of a little more verbosity: D newbie here: is there a non-negligible cost to creating a stateless struct type?

Re: Beta 2.076.0

2017-08-18 Thread jmh530 via Digitalmars-d-announce
On Friday, 18 August 2017 at 12:58:18 UTC, Martin Nowak wrote: First beta for the 2.076.0 release. This release comes with various phobos additions and lots of improvements for -betterC (changelog entry upcoming). http://dlang.org/download.html#dmd_beta

Re: Named multi-imports

2017-08-18 Thread jmh530 via Digitalmars-d
On Friday, 18 August 2017 at 09:18:42 UTC, Timon Gehr wrote: --- module util; // ... template Imports(T...){ import std.string,std.algorithm; mixin([T].map!(x=>"public import "~x~";").join); // or, starting from DMD 2.076, you could use static foreach instead: // static

Need help with units library

2017-08-18 Thread alexander1974 via Digitalmars-d-learn
I want to write a library for working with units (lengths, weights, ...). It should allow maths and converting with/between different units (cm to mm, angstrom to meter, ...). The SI Sytem consists of the base units for length (meter), mass (kg), time (second) ,... and the prefixes like yotta

Beta 2.076.0

2017-08-18 Thread Martin Nowak via Digitalmars-d-announce
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 First beta for the 2.076.0 release. This release comes with various phobos additions and lots of improvements for -betterC (changelog entry upcoming). http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.076.0.html Please report

dmd download record

2017-08-18 Thread Joakim via Digitalmars-d
Downloads from dlang.org, which doesn't include outside distro packages like Arch or FreeBSD, have now jumped an order of magnitude over the last five years: http://erdani.com/d/downloads.daily.png Congrats to all those who kept their head down grinding away on code, including the

Some news from Dplug

2017-08-18 Thread Guillaume Piolat via Digitalmars-d-announce
Some news from the audio front! Reminder: Dplug is a convenient library for creating audio plug-ins (VST / AU) for Mac, Windows and now Linux. Thanks to the effort of Richard Andrew Cattermole and Ethan Rekker, Dplug got Linux VST support. Ethan has written down the whole story here:

Re: LDC, ARM: unnecessary default initialization

2017-08-18 Thread kinke via Digitalmars-d
On Friday, 18 August 2017 at 09:42:25 UTC, Jack Applegame wrote: For some reason, the LDC default initializes the structure, even if initialization of all its members is specified as void. I believe that this is wrong. Afaik, this has been brought up multiple times already and is so by

Re: Exception chaining and collectException

2017-08-18 Thread Steven Schveighoffer via Digitalmars-d
On Friday, 18 August 2017 at 03:31:38 UTC, Walter Bright wrote: Chained exceptions are a good idea, but are more or less a disaster: 1. No other language does chained exceptions 2. Attempting to hammer D chained exceptions into other language schemes (such as C++) makes for lots of unfun

[Issue 15831] IFTI voldemort type exploding bloat

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

[Issue 15831] IFTI voldemort type exploding bloat

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15831 --- Comment #19 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/c272eb830597efcc8fe75c7e1c9791c512a08727 fix issue 15831: mangle back references for types and

Re: Exception chaining and collectException

2017-08-18 Thread jmh530 via Digitalmars-d
On Friday, 18 August 2017 at 09:09:47 UTC, Don Clugston wrote: Secondly, exception handling in windows is practically undocumented. Certainly it's not documented in a single place. When I began to implement it, I feared it might be impossible. There isn't any guarantee that exception

Re: Different Output after each execution

2017-08-18 Thread Moritz Maxeiner via Digitalmars-d-learn
On Friday, 18 August 2017 at 10:50:28 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:06:04 UTC, Vino wrote: On Friday, 18 August 2017 at 08:34:39 UTC, ikod wrote: On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B wrote: Hi All, I have written a small program to just list the

Re: Different Output after each execution

2017-08-18 Thread Moritz Maxeiner via Digitalmars-d-learn
On Friday, 18 August 2017 at 10:06:04 UTC, Vino wrote: On Friday, 18 August 2017 at 08:34:39 UTC, ikod wrote: On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B wrote: Hi All, I have written a small program to just list the directories, but when i run the program each time i am getting

[Issue 17761] dmd 2.075.1 creates object files that can't be linked by ld.bfd

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17761 --- Comment #1 from Atila Neves --- I forgot to add: this is a regression from dmd 2.074.1 - that version builds fine. --

[Issue 17761] New: dmd 2.075.1 creates object files that can't be linked by ld.bfd

2017-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17761 Issue ID: 17761 Summary: dmd 2.075.1 creates object files that can't be linked by ld.bfd Product: D Version: D2 Hardware: x86_64 OS: Linux Status:

Re: Different Output after each execution

2017-08-18 Thread Vino via Digitalmars-d-learn
On Friday, 18 August 2017 at 08:34:39 UTC, ikod wrote: On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B wrote: Hi All, I have written a small program to just list the directories, but when i run the program each time i am getting different output, hence request you help, below is the code

Re: D books for $5

2017-08-18 Thread Kai Nacke via Digitalmars-d-announce
On Thursday, 3 August 2017 at 21:36:09 UTC, Michael wrote: On Friday, 16 December 2016 at 05:43:02 UTC, Kai Nacke wrote: Hi all, Packt Publishing offers eBooks for $5 for a limited time. If your collection of D eBooks is still incomplete then this is a great chance for you. :-) D Cookbook

LDC, ARM: unnecessary default initialization

2017-08-18 Thread Jack Applegame via Digitalmars-d
I explore the possibility of using D for bare metal ARM programming. For some reason, the LDC default initializes the structure, even if initialization of all its members is specified as void. I believe that this is wrong. test.d module test; import

Re: Named multi-imports

2017-08-18 Thread Timon Gehr via Digitalmars-d
On 18.08.2017 03:11, Johnson Jones wrote: private struct oo{ import std.stdio: writeln, write; import std.algorithm: filter, map; // … } void main(){ oo.write("result: "); oo.writeln(oo.map!(x=>x/2)(oo.filter!(x=>x%2==0)([1,2,3,4,5,6,10]))); } Wow, that might solve the

Re: Exception chaining and collectException

2017-08-18 Thread Don Clugston via Digitalmars-d
On Friday, 18 August 2017 at 03:31:38 UTC, Walter Bright wrote: Chained exceptions are a good idea, but are more or less a disaster: 1. No other language does chained exceptions 2. Attempting to hammer D chained exceptions into other language schemes (such as C++) makes for lots of unfun

When using the -profile flag is it known behaviour that phobos unit tests fail?

2017-08-18 Thread firosiro via Digitalmars-d
When using the -profile flag is it known behaviour that phobos unit tests fail? (Ubuntu 16.04 - DMD64 D Compiler v2.071.0) For example, when following these steps I get a failed unit test: $ cd /usr/include/dmd/phobos/std/ $ rdmd -I/usr/include/dmd/phobos/std -I/usr/include/dmd/phobos/core

Re: Named multi-imports

2017-08-18 Thread Timon Gehr via Digitalmars-d
On 18.08.2017 01:25, jmh530 wrote: On Thursday, 17 August 2017 at 21:49:38 UTC, Timon Gehr wrote: private struct oo{ import std.stdio: writeln, write; import std.algorithm: filter, map; // … } void main(){ oo.write("result: ");

Re: Different Output after each execution

2017-08-18 Thread ikod via Digitalmars-d-learn
On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B wrote: Hi All, I have written a small program to just list the directories, but when i run the program each time i am getting different output, hence request you help, below is the code [...] Do you expect some strict execution order when

Different Output after each execution

2017-08-18 Thread Vino.B via Digitalmars-d-learn
Hi All, I have written a small program to just list the directories, but when i run the program each time i am getting different output, hence request you help, below is the code Program: import std.file: dirEntries, isFile, SpanMode, remove; import std.stdio: writefln; import

Re: Formated Output and file creation time

2017-08-18 Thread Vino.B via Digitalmars-d-learn
On Wednesday, 16 August 2017 at 17:03:51 UTC, H. S. Teoh wrote: On Wed, Aug 16, 2017 at 03:30:18PM +, Vino.B via Digitalmars-d-learn wrote: [...] [...] Try this: writefln("%-36s %8s %.20s", d, d.size, d.timeCreated()); T Hi Teoh, Thank you very much, it worked.

Re: Problem with BP's

2017-08-18 Thread Rainer Schuetze via Digitalmars-d-debugger
On 18.08.2017 02:05, Johnson Jones wrote: On Friday, 18 August 2017 at 00:02:23 UTC, Johnson Jones wrote: On Thursday, 17 August 2017 at 22:41:51 UTC, Johnson Jones wrote: I was doing something strange ;/ I had code like mixin(import("Myfile.d")); CallSomeFunctionInMyFile(); And no BP's

Re: Debugging Visual D using Visual D

2017-08-18 Thread Rainer Schuetze via Digitalmars-d-debugger
On 18.08.2017 00:14, Johnson Jones wrote: On Thursday, 17 August 2017 at 21:18:35 UTC, Johnson Jones wrote: On Thursday, 17 August 2017 at 17:45:35 UTC, Rainer Schuetze wrote: On 17.08.2017 19:05, Johnson wrote: On Wednesday, 16 August 2017 at 19:35:19 UTC, Rainer Schuetze wrote: On