Re: Need simple sound

2017-07-04 Thread FoxyBrown via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 20:37:44 UTC, Sebastiaan Koppe wrote: On Monday, 3 July 2017 at 08:55:20 UTC, Martin Tschierschke wrote: Hello for a simple game I would like to add some very simple sound, not much different than the beeps of "PAC Man". Is there anything I can use for this?

Re: Release fluent-asserts 0.6.0

2017-07-04 Thread Soulsbane via Digitalmars-d-announce
On Sunday, 2 July 2017 at 13:34:25 UTC, Szabo Bogdan wrote: Hi, I just made a new release of fluent-asserts: http://fluentasserts.szabobogdan.com/ https://code.dlang.org/packages/fluent-asserts Since my last announcement I improved the library with: - better error messages - better

[Issue 17596] dmd d 2.073.2 and 2.074.1 interim generated dmd segfaults on FreeBSD 12-CURRENT

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17596 Cy Schubert changed: What|Removed |Added Priority|P1 |P2 --

[Issue 17380] Compiler segfaults on undefined symbol

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17380 --- Comment #2 from Walter Bright --- I don't think it is a regression, either. https://github.com/dlang/dmd/pull/6969 --

[Issue 16992] ddoc generator does not insert ddoc-ed unittest blocks for fromISOString, fromISOExtString, and fromSimpleString into the documentation

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16992 Jonathan M Davis changed: What|Removed |Added Keywords|trivial |ddoc

[Issue 16992] ddoc generator does not insert ddoc-ed unittest blocks for fromISOString, fromISOExtString, and fromSimpleString into the documentation

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16992 Jonathan M Davis changed: What|Removed |Added Summary|fromISOString, |ddoc

[Issue 17380] Compiler segfaults on undefined symbol

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

[Issue 16992] fromISOString, fromISOExtString, and fromSimpleString do not have examples

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16992 Jonathan M Davis changed: What|Removed |Added CC|

[Issue 17594] Define DDOC_BLANKLINE as an empty HTML paragraph, thus obviating the need to wrap text in $(P ...)

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

[Issue 17594] Define DDOC_BLANKLINE as an empty HTML paragraph, thus obviating the need to wrap text in $(P ...)

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17594 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/1040dd920cf18c7ce0ca2fcde963f90853084cd9 Fix Issue 17594 - Define DDOC_BLANKLINE as an

[Issue 17596] New: dmd d 2.073.2 and 2.074.1 interim generated dmd segfaults on FreeBSD 12-CURRENT

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17596 Issue ID: 17596 Summary: dmd d 2.073.2 and 2.074.1 interim generated dmd segfaults on FreeBSD 12-CURRENT Product: D Version: D2 Hardware: x86_64 OS: FreeBSD

[Issue 17482] [REG 2.074] comile error: Comparing Nullable!Variant with basic type

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17482 --- Comment #4 from Jonathan M Davis --- https://github.com/dlang/phobos/pull/5541 --

Re: VSCode plugins

2017-07-04 Thread Manu via Digitalmars-d
On 5 July 2017 at 12:37, bitwise via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Tuesday, 4 July 2017 at 04:49:29 UTC, Manu wrote: > >> My feeling is, having 2 very similar plugins is confusing to potential >> users, and it undermines user confidence. Ie, users have the feeling that

Re: VSCode plugins

2017-07-04 Thread bitwise via Digitalmars-d
On Tuesday, 4 July 2017 at 04:49:29 UTC, Manu wrote: My feeling is, having 2 very similar plugins is confusing to potential users, and it undermines user confidence. Ie, users have the feeling that they're competing hacky things maintained by some guy, rather than something that's more

Re: VSCode plugins

2017-07-04 Thread Manu via Digitalmars-d
On 4 July 2017 at 23:27, Wulfklaue via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Tuesday, 4 July 2017 at 04:49:29 UTC, Manu wrote: > >> I've been using code-d for a while, and it generally works well. I've >> also noticed there's another plugin available, which at the time I first

Re: VSCode plugins

2017-07-04 Thread Manu via Digitalmars-d
On 4 July 2017 at 22:41, Meta via Digitalmars-d wrote: > >> It's just different users developing different solutions. I disagree with > the notion that having multiple competing, up to date implementations would > "undermine user confidence" in D. Quite the

[Issue 17595] Fix warnings in PDF build & fail on specific warnings in the future

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

Re: Need simple sound

2017-07-04 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 17:51:06 UTC, Dukc wrote: When simplicity is the matter number 1, Arsd-official most likely what you're looking for. It has a library file for audio. Simpleaudio.d or Simplesound.d, not sure which it was. simpleaudio.d. It'd probably be good enough for this (it

Re: Append to 'map' result

2017-07-04 Thread Ali Çehreli via Digitalmars-d-learn
On 07/04/2017 05:52 PM, Jean-Louis Leroy wrote: On Wednesday, 5 July 2017 at 00:28:01 UTC, Ali Çehreli wrote: On 07/04/2017 04:57 PM, Jean-Louis Leroy wrote: [...] No time to dig deeper but this is because the two ranges that chain() receives do not have a common type. (Rather, that type is

[Issue 17593] __POS__ magical constant like __FILE__ and friends

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

[Issue 17592] destroy isn't marked @nogc when the class destructor is marked as @nogc

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

Re: Append to 'map' result

2017-07-04 Thread Jean-Louis Leroy via Digitalmars-d-learn
On Wednesday, 5 July 2017 at 00:28:01 UTC, Ali Çehreli wrote: On 07/04/2017 04:57 PM, Jean-Louis Leroy wrote: [...] No time to dig deeper but this is because the two ranges that chain() receives do not have a common type. (Rather, that type is 'void'): [...] I suspect that that is the

Re: Work on ARM backend for DMD started

2017-07-04 Thread Walter Bright via Digitalmars-d-announce
On 7/4/2017 2:25 PM, Stefan Koch wrote: I am not sure how much of this really lends itself to be applied on arm. The code generator started out as 16 bits, and was that way for 10 years or so. x87 got added in later. Then it was adapted for 32 bits. Another 10 years went by, then 64 bits,

Re: Append to 'map' result

2017-07-04 Thread Ali Çehreli via Digitalmars-d-learn
On 07/04/2017 04:57 PM, Jean-Louis Leroy wrote: On Tuesday, 4 July 2017 at 23:26:28 UTC, H. S. Teoh wrote: On Tue, Jul 04, 2017 at 11:27:25PM +, Jean-Louis Leroy via Digitalmars-d-learn wrote: I want to create a range that consists of the result of a map() followed by a value, e.g.:

Re: Work on ARM backend for DMD started

2017-07-04 Thread Walter Bright via Digitalmars-d-announce
On 7/4/2017 2:25 PM, Stefan Koch wrote: At a first glance it looks highly x86 specific. The algorithm is not. The details are, of course, since if you read the Intel CPU manual there is an incredible amount of detail. I am not sure how much of this really lends itself to be applied on arm.

Re: Append to 'map' result

2017-07-04 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, July 04, 2017 23:50:57 Nicholas Wilson via Digitalmars-d-learn wrote: > On Tuesday, 4 July 2017 at 23:27:25 UTC, Jean-Louis Leroy wrote: > > I want to create a range that consists of the result of a map() > > > > followed by a value, e.g.: > > int[] x = [ 1, 2, 3]; > > auto y =

Re: Append to 'map' result

2017-07-04 Thread Jean-Louis Leroy via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 23:26:28 UTC, H. S. Teoh wrote: On Tue, Jul 04, 2017 at 11:27:25PM +, Jean-Louis Leroy via Digitalmars-d-learn wrote: I want to create a range that consists of the result of a map() followed by a value, e.g.: int[] x = [ 1, 2, 3]; auto y = map!(x => x *

Re: Append to 'map' result

2017-07-04 Thread Nicholas Wilson via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 23:27:25 UTC, Jean-Louis Leroy wrote: I want to create a range that consists of the result of a map() followed by a value, e.g.: int[] x = [ 1, 2, 3]; auto y = map!(x => x * x)(x); auto z = y ~ 99; // how??? I have tried several variations: convert 99 to a

Re: Append to 'map' result

2017-07-04 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Jul 04, 2017 at 11:27:25PM +, Jean-Louis Leroy via Digitalmars-d-learn wrote: > I want to create a range that consists of the result of a map() > followed by a value, e.g.: > > int[] x = [ 1, 2, 3]; > auto y = map!(x => x * x)(x); > auto z = y ~ 99; // how??? > > I have tried

Append to 'map' result

2017-07-04 Thread Jean-Louis Leroy via Digitalmars-d-learn
I want to create a range that consists of the result of a map() followed by a value, e.g.: int[] x = [ 1, 2, 3]; auto y = map!(x => x * x)(x); auto z = y ~ 99; // how??? I have tried several variations: convert 99 to a dynamic array, to a range, convert range to dynamic array (couldn't

Re: Work on ARM backend for DMD started

2017-07-04 Thread H. S. Teoh via Digitalmars-d-announce
On Tue, Jul 04, 2017 at 02:10:45PM -0700, Walter Bright via Digitalmars-d-announce wrote: > On 7/4/2017 1:15 PM, Stefan Koch wrote: > > Most arm implementation are not as forgiving as contemporary x86 > > processors when it comes to bad register scheduling and the like. > > The backend's

Re: Go 1.9

2017-07-04 Thread bachmeier via Digitalmars-d
On Tuesday, 4 July 2017 at 03:41:35 UTC, jmh530 wrote: I just gave it a try. Got an error. As far as I can tell, the problem is that my user name has a space in it (firstname[space]lastname). library(embedrwin) setwd("C:\\test\\") compile("librtest",

Re: Work on ARM backend for DMD started

2017-07-04 Thread Walter Bright via Digitalmars-d-announce
On 7/4/2017 1:15 PM, Stefan Koch wrote: Most arm implementation are not as forgiving as contemporary x86 processors when it comes to bad register scheduling and the like. The backend's scheduler is actually very effective. It mattered with the Pentium and Pentium Pro processors, but not

Re: Beta 2.075.0-b1

2017-07-04 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 27 June 2017 at 10:46:38 UTC, Mario Kröplin wrote: It' not really intended to disallow comparisons between const(Status) and Status, isn't it? Sure not, please file a regression. BTW: There's a regression: running dmd with option -deps results in a segmentation fault. We can try

Re: About Dub capabilities

2017-07-04 Thread Martin Nowak via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 20:46:33 UTC, Dukc wrote: Not that I have any need for that right now, I am just interested. preGenerate-/preBuildCommands are your friends to compile C++ code using dub. You'd invoke make or sth. and add the generated libs/objects to dub's sourceFiles.

About Dub capabilities

2017-07-04 Thread Dukc via Digitalmars-d-learn
When you want to do things other than just fetching packages, invoking D compilers and converting package descriptors, I am wondering is Dub up to it? For example, could dmd source code build (if somebody wanted to) be automated with Dub instead of CMake, bearing in mind it requires some c++

Re: Beta 2.075.0-b1

2017-07-04 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 27 June 2017 at 07:51:07 UTC, Dsby wrote: what about DIP1000? Is it default? We'd definitely mention such a big change in our changelog. At the moment scope support is still experimental with a couple of known issues

Re: Need simple sound

2017-07-04 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Monday, 3 July 2017 at 08:55:20 UTC, Martin Tschierschke wrote: Hello for a simple game I would like to add some very simple sound, not much different than the beeps of "PAC Man". Is there anything I can use for this? Portaudio is simple as well. And nice cross platform.

Re: Work on ARM backend for DMD started

2017-07-04 Thread Stefan Koch via Digitalmars-d-announce
On Monday, 3 July 2017 at 23:16:07 UTC, solidstate1991 wrote: While I currently don't have an ARM based hardware that would be easy to develop on, I'm planning to use QEMU to emulate some form of ARMv6 CPU, as it'll be the main target, as it's still being used in devices like the Raspberry Pi.

[Issue 17539] std.parallellism.parallel triggers 'statement not reachable' warnings in the rdmd_test suite

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

[Issue 17539] std.parallellism.parallel triggers 'statement not reachable' warnings in the rdmd_test suite

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17539 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f3770ba1d675ed952012cbfc8dd38b823e1d3ca7 Fix Issue 17539 - std.parallellism.parallel triggers

[Issue 17595] New: Fix warnings in PDF build & fail on specific warnings in the future

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17595 Issue ID: 17595 Summary: Fix warnings in PDF build & fail on specific warnings in the future Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: Need simple sound

2017-07-04 Thread Dukc via Digitalmars-d-learn
On Monday, 3 July 2017 at 08:55:20 UTC, Martin Tschierschke wrote: Hello for a simple game I would like to add some very simple sound, not much different than the beeps of "PAC Man". Is there anything I can use for this? When simplicity is the matter number 1, Arsd-official most likely what

Re: LDC ARM in target state

2017-07-04 Thread NotSpooky via Digitalmars-d
On Tuesday, 4 July 2017 at 10:46:12 UTC, aberba wrote: I have limited knowledge in embedded programming and I'm developing interest in Maker Culture. Python is popular in DIY maker projects but I don't want to go back to revise and improve my Python knowledge. My interest is in using more

[Issue 9731] Ddoc should output per-paragraph macro instead of $(DDOC_BLANKLINE)

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9731 --- Comment #7 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f197169c5a573a3dcef72fac503a35b724775082 Fix Issue 9731 - Ddoc should output per-paragraph macro instead

[Issue 2060] some ddoc design typos

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2060 Issue 2060 depends on issue 9731, which changed state. Issue 9731 Summary: Ddoc should output per-paragraph macro instead of $(DDOC_BLANKLINE) https://issues.dlang.org/show_bug.cgi?id=9731 What|Removed |Added

[Issue 9731] Ddoc should output per-paragraph macro instead of $(DDOC_BLANKLINE)

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9731 Andrei Alexandrescu changed: What|Removed |Added CC||and...@erdani.com

[Issue 17594] Define DDOC_BLANKLINE as an empty HTML paragraph, thus obviating the need to wrap text in $(P ...)

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17594 --- Comment #1 from Andrei Alexandrescu --- Related: https://issues.dlang.org/show_bug.cgi?id=9731 --

[Issue 17594] New: Define DDOC_BLANKLINE as an empty HTML paragraph, thus obviating the need to wrap text in $(P ...)

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17594 Issue ID: 17594 Summary: Define DDOC_BLANKLINE as an empty HTML paragraph, thus obviating the need to wrap text in $(P ...) Product: D Version: D2 Hardware: All

Re: Is there a macro for code snippets introduced with "---"?

2017-07-04 Thread Andrei Alexandrescu via Digitalmars-d
On 07/04/2017 12:37 AM, Sönke Ludwig wrote: The problem is that syntax highlighting of code blocks happens at an earlier stage according to the spec (see "Phases of Processing" at http://dlang.org/spec/ddoc.html). I just checked and I'm actually doing it the other way around in DDOX, without

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 1

2017-07-04 Thread Mike Parker via Digitalmars-d
On Tuesday, 20 June 2017 at 11:57:55 UTC, Mike Parker wrote: DIP 1009 is titled "Improve Contract Usability". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1009.md All review-related feedback on and discussion of the DIP should occur in this thread. The review period will end at 11:59 PM

[Issue 17587] JSONOptions: No forward slash encoding

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17587 --- Comment #2 from Andre --- In my AWS SDK I had the issue that \/ was not accepted while passing the JSON as console argument to the AWS console client. In the meantime I save the JSON as file and pass the file name to the AWS

Re: Need simple sound

2017-07-04 Thread Martin Tschierschke via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 11:59:33 UTC, Vladimir Panteleev wrote: On Monday, 3 July 2017 at 10:40:03 UTC, Martin Tschierschke wrote: On Monday, 3 July 2017 at 09:24:35 UTC, Guillaume Piolat wrote: On Monday, 3 July 2017 at 08:55:20 UTC, Martin Tschierschke wrote: Hello for a simple game I

Re: VSCode plugins

2017-07-04 Thread Wulfklaue via Digitalmars-d
On Tuesday, 4 July 2017 at 04:49:29 UTC, Manu wrote: I've been using code-d for a while, and it generally works well. I've also noticed there's another plugin available, which at the time I first looked, appeared to be older and less-featured than code-d. dlang-vscode.dlang seems to be more

Re: Funny issue with casting double to ulong

2017-07-04 Thread Era Scarecrow via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 12:32:26 UTC, Patrick Schluter wrote: In times of lore, BCD floats were very common. The Sharp Pocket Computer used a BCD float format and writing machine code on them confronts one with the format. The TI-99/4A home computer also used a BCD float format in its Basic

[Issue 16992] fromISOString, fromISOExtString, and fromSimpleString do not have examples

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16992 --- Comment #7 from RazvanN --- I think that having all fromISOString overloads gathered in a single template function which is called fromISOString!Choose_type(some_string), where Choose_type is one of {Date, DateTime,

[Issue 16992] fromISOString, fromISOExtString, and fromSimpleString do not have examples

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16992 --- Comment #6 from Vladimir Panteleev --- (In reply to RazvanN from comment #5) > For now we could wrap the static call in a public call outside the struct > and generate documentation for that function (and other

Re: VSCode plugins

2017-07-04 Thread Meta via Digitalmars-d
On Tuesday, 4 July 2017 at 04:49:29 UTC, Manu wrote: I've been using code-d for a while, and it generally works well. I've also noticed there's another plugin available, which at the time I first looked, appeared to be older and less-featured than code-d. I've recently had a couple of

Re: Funny issue with casting double to ulong

2017-07-04 Thread Patrick Schluter via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 00:35:10 UTC, H. S. Teoh wrote: On Mon, Jul 03, 2017 at 07:13:45AM +, Era Scarecrow via Digitalmars-d-learn wrote: On Monday, 3 July 2017 at 06:20:22 UTC, H. S. Teoh wrote: [...] > I don't think there's a way to change how the FPU works -- > the hardware is

[Issue 16992] fromISOString, fromISOExtString, and fromSimpleString do not have examples

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16992 --- Comment #5 from RazvanN --- For now we could wrap the static call in a public call outside the struct and generate documentation for that function (and other overloads). --

Re: safe method overloading with different refness of its arguments

2017-07-04 Thread drug via Digitalmars-d-learn
04.07.2017 15:06, Basile B. пишет: On Tuesday, 4 July 2017 at 10:40:42 UTC, drug wrote: ``` struct Foo { ubyte width, length; // by reference bool opEquals(ref const(Foo) other) const pure @safe { if (width != other.width) return false; if (length !=

Re: safe method overloading with different refness of its arguments

2017-07-04 Thread Basile B. via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 10:40:42 UTC, drug wrote: ``` struct Foo { ubyte width, length; // by reference bool opEquals(ref const(Foo) other) const pure @safe { if (width != other.width) return false; if (length != other.length) return

[Issue 16992] fromISOString, fromISOExtString, and fromSimpleString do not have examples

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16992 --- Comment #3 from Andrei Alexandrescu --- The examples to appear in ddox, see e.g. https://dlang.org/library/std/datetime/date.from_iso_string.html. The problem is therefore in ddmd/src/doc.d. Probably the intent was to not

[Issue 16992] fromISOString, fromISOExtString, and fromSimpleString do not have examples

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16992 --- Comment #4 from Andrei Alexandrescu --- s/to appear/do appear/ --

Re: Need simple sound

2017-07-04 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 3 July 2017 at 10:40:03 UTC, Martin Tschierschke wrote: On Monday, 3 July 2017 at 09:24:35 UTC, Guillaume Piolat wrote: On Monday, 3 July 2017 at 08:55:20 UTC, Martin Tschierschke wrote: Hello for a simple game I would like to add some very simple sound, not much different than the

Re: Error in spec: struct init with member names

2017-07-04 Thread Nick Treleaven via Digitalmars-d
On Monday, 3 July 2017 at 18:14:43 UTC, Johan Engelen wrote: The spec (or DMD frontend) is broken regarding struct initialization with explicit mention of member field names: https://dlang.org/spec/struct.html#static_struct_init I agree, PR: https://github.com/dlang/dlang.org/pull/1794

GDB behaves strange with DMD

2017-07-04 Thread Gorthad via Digitalmars-d-debugger
Hello everyone. I'm trying to debug programs compiled with DMD using GDB. My dmd version is 2.074.1, gdb version is 7.11.1, operating system is Ubuntu 16.04. I have this little helloworld.d: import std.stdio; void main() { auto a = 5; writeln("Hello, world!"); foreach (i; 0 ..

Re: How to get uniq to return an array?

2017-07-04 Thread maarten van damme via Digitalmars-d-learn
have you tried std.range's .array? 2017-07-04 13:00 GMT+02:00 PumpkinCake via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com>: > I'm trying to strip repeated values out of an int array using uniq. It's > returning a UniqResult which can't be accessed like an array... how can I > get it

[Issue 16992] fromISOString, fromISOExtString, and fromSimpleString do not have examples

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

Re: How to get uniq to return an array?

2017-07-04 Thread cym13 via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 11:00:05 UTC, PumpkinCake wrote: I'm trying to strip repeated values out of an int array using uniq. It's returning a UniqResult which can't be accessed like an array... how can I get it to return an array, or cast whatever it is returning to be an array? Most

How to get uniq to return an array?

2017-07-04 Thread PumpkinCake via Digitalmars-d-learn
I'm trying to strip repeated values out of an int array using uniq. It's returning a UniqResult which can't be accessed like an array... how can I get it to return an array, or cast whatever it is returning to be an array?

[Issue 17593] New: __POS__ magical constant like __FILE__ and friends

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17593 Issue ID: 17593 Summary: __POS__ magical constant like __FILE__ and friends Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status:

LDC ARM in target state

2017-07-04 Thread aberba via Digitalmars-d
I have limited knowledge in embedded programming and I'm developing interest in Maker Culture. Python is popular in DIY maker projects but I don't want to go back to revise and improve my Python knowledge. My interest is in using more recent and capable arm boards which can handle D. What

safe method overloading with different refness of its arguments

2017-07-04 Thread drug via Digitalmars-d-learn
``` struct Foo { ubyte width, length; // by reference bool opEquals(ref const(Foo) other) const pure @safe { if (width != other.width) return false; if (length != other.length) return false; return true; } // by value

Re: Checked vs unchecked exceptions

2017-07-04 Thread Ola Fosheim Grøstad via Digitalmars-d
On Monday, 3 July 2017 at 20:22:39 UTC, Crayo List wrote: On Thursday, 29 June 2017 at 21:06:12 UTC, Ola Fosheim Grøstad wrote: On Thursday, 29 June 2017 at 19:34:22 UTC, Crayo List wrote: Checked exceptions are a horrible idea because they leak internal implementation details as part of the

[Issue 17590] Unnecessary GC alloc on returning static local struct

2017-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17590 Tomer Filiba (weka) changed: What|Removed |Added CC||to...@weka.io --

Re: Work on ARM backend for DMD started

2017-07-04 Thread Brad Roberts via Digitalmars-d-announce
On 7/3/2017 11:50 PM, Iain Buclaw via Digitalmars-d-announce wrote: On Monday, 3 July 2017 at 23:16:07 UTC, solidstate1991 wrote: While I currently don't have an ARM based hardware that would be easy to develop on, I'm planning to use QEMU to emulate some form of ARMv6 CPU, as it'll be the

Re: Why do "const inout" and "const inout shared" exist?

2017-07-04 Thread Walter Bright via Digitalmars-d
On 7/3/2017 5:29 PM, H. S. Teoh via Digitalmars-d wrote: So what stops us from actually exploiting them in dmd's optimizer? Nothing. Pull requests are welcome!

Re: Work on ARM backend for DMD started

2017-07-04 Thread Iain Buclaw via Digitalmars-d-announce
On Monday, 3 July 2017 at 23:16:07 UTC, solidstate1991 wrote: While I currently don't have an ARM based hardware that would be easy to develop on, I'm planning to use QEMU to emulate some form of ARMv6 CPU, as it'll be the main target, as it's still being used in devices like the Raspberry Pi.

Re: VSCode plugins

2017-07-04 Thread Manu via Digitalmars-d
On 4 July 2017 at 14:59, bauss via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Tuesday, 4 July 2017 at 04:49:29 UTC, Manu wrote: > >> If authors of both plugins are active here, I ask; why have 2 separate >> > > The same reason there are multiple editors. > Errr. No. I don't think