Re: WinTab (wacom tablet API) and Windows Core Audio bindings - new DUB packages

2016-10-06 Thread Vadim Lopatin via Digitalmars-d-announce
On Thursday, 6 October 2016 at 21:21:33 UTC, Karabuta wrote: On Thursday, 6 October 2016 at 07:10:29 UTC, Vadim Lopatin wrote: Hello, I've published two new DUB packages. derelict-wintab: derelict binding of WinTab32.DLL - API for Wacom digitizer tablets. wasapi: translation of Windows

[Issue 16589] Taking address of stack variables in @safe code is allowed in some cases

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16589 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/34213361ec3cd13485db7eb4044e93b85178397c fix Issue 16589 - Taking address of stack variables in @safe

Re: color lib

2016-10-06 Thread Manu via Digitalmars-d
On 7 October 2016 at 12:55, Manu wrote: > On 7 October 2016 at 12:38, Manu wrote: >> On 7 October 2016 at 12:25, Chris Wright via Digitalmars-d >> wrote: >>> On Fri, 07 Oct 2016 11:42:08 +1000, Manu via Digitalmars-d wrote:

Re: color lib

2016-10-06 Thread Manu via Digitalmars-d
On 7 October 2016 at 12:38, Manu wrote: > On 7 October 2016 at 12:25, Chris Wright via Digitalmars-d > wrote: >> On Fri, 07 Oct 2016 11:42:08 +1000, Manu via Digitalmars-d wrote: >>> I think throwing is the precedented action in that failure

Re: color lib

2016-10-06 Thread Manu via Digitalmars-d
On 7 October 2016 at 12:25, Chris Wright via Digitalmars-d wrote: > On Fri, 07 Oct 2016 11:42:08 +1000, Manu via Digitalmars-d wrote: >> I think throwing is the precedented action in that failure case... >> what would you suggest? > > In C# 1.0, the standard pattern

Re: color lib

2016-10-06 Thread Manu via Digitalmars-d
On 7 October 2016 at 11:42, Manu wrote: > On 7 October 2016 at 03:03, Ilya Yaroshenko via Digitalmars-d > wrote: >> On Thursday, 6 October 2016 at 14:53:52 UTC, Manu wrote: >>> >>> I've done another pass incorporating prior feedback, mostly

Re: color lib

2016-10-06 Thread Chris Wright via Digitalmars-d
On Fri, 07 Oct 2016 11:42:08 +1000, Manu via Digitalmars-d wrote: > I think throwing is the precedented action in that failure case... > what would you suggest? In C# 1.0, the standard pattern was to throw on errors. Later, they revised their preferred mechanism and started offering methods

Re: inout delegate

2016-10-06 Thread Manu via Digitalmars-d
On 7 October 2016 at 05:58, Jinx via Digitalmars-d wrote: > On Thursday, 6 October 2016 at 15:00:56 UTC, Manu wrote: >> >> On 6 October 2016 at 00:29, Manu wrote: >>> >>> On 4 October 2016 at 11:15, Manu wrote:

Re: color lib

2016-10-06 Thread Manu via Digitalmars-d
On 7 October 2016 at 04:48, Random D user via Digitalmars-d wrote: > On Thursday, 6 October 2016 at 14:53:52 UTC, Manu wrote: >> >> I've done another pass incorporating prior feedback, mostly focusing on >> documentation. > > > Just a quick minor comment on: > A8

Re: std.math API rework

2016-10-06 Thread Andrei Alexandrescu via Digitalmars-d
On 10/6/16 12:53 PM, Ilya Yaroshenko wrote: Effective work with std.experimental.ndslice and and mir.ndslice.array requires half of std.math be an exactly aliases to LLVM intrinsics (for LDC). Why? To enable vectorization for mir.ndslice.algorithm I created internal math module [1] in Mir.

Re: color lib

2016-10-06 Thread Manu via Digitalmars-d
On 7 October 2016 at 03:03, Ilya Yaroshenko via Digitalmars-d wrote: > On Thursday, 6 October 2016 at 14:53:52 UTC, Manu wrote: >> >> I've done another pass incorporating prior feedback, mostly focusing on >> documentation. >> >> >>

[Issue 9391] Constant std.regex.regex

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9391 --- Comment #2 from Dmitry Olshansky --- Pull: https://github.com/dlang/phobos/pull/4286 --

Re: std.math API rework

2016-10-06 Thread kinke via Digitalmars-d
On Thursday, 6 October 2016 at 20:55:55 UTC, Ilya Yaroshenko wrote: So, I don't see a reason why this change break something, hehe No, Iain is right. These LLVM intrinsics are most often simple forwarders to the C runtime functions; I was rather negatively surprised to find out a while ago.

Re: std.math API rework

2016-10-06 Thread Iain Buclaw via Digitalmars-d
On 6 October 2016 at 22:55, Ilya Yaroshenko via Digitalmars-d wrote: > On Thursday, 6 October 2016 at 20:45:24 UTC, Iain Buclaw wrote: >> >> On 6 October 2016 at 22:31, Ilya Yaroshenko via Digitalmars-d >> wrote: >>> >>> On Thursday, 6

Re: What exactly does the compiler switch -betterC do?

2016-10-06 Thread Martin Nowak via Digitalmars-d-learn
On Wednesday, 5 October 2016 at 12:42:14 UTC On Wednesday, 5 October 2016 at 12:42:14 UTC, Jacob Carlborg wrote: No. There's a difference between DMD 2.070.0 and 2.071.0: OK, I'll retry on OSX, the bug report said Linux though. Seems like we're dragging in all of the _Dmain stuff. IIRC

Re: PowerNex - The Userspace update! (also first birthday)

2016-10-06 Thread Karabuta via Digitalmars-d-announce
On Tuesday, 4 October 2016 at 11:08:51 UTC, Dejan Lekic wrote: On Sunday, 2 October 2016 at 22:46:17 UTC, Wild wrote: Congratulations!! It definitely looks promising, even though I really do not like the coding style, but that is just a matter of taste I guess. :) The coding convention is

Re: WinTab (wacom tablet API) and Windows Core Audio bindings - new DUB packages

2016-10-06 Thread Karabuta via Digitalmars-d-announce
On Thursday, 6 October 2016 at 07:10:29 UTC, Vadim Lopatin wrote: Hello, I've published two new DUB packages. derelict-wintab: derelict binding of WinTab32.DLL - API for Wacom digitizer tablets. wasapi: translation of Windows Core Audio interfaces (Core Audio interfaces: MMDevice, WASAPI,

Re: std.math API rework

2016-10-06 Thread Ilya Yaroshenko via Digitalmars-d
On Thursday, 6 October 2016 at 20:45:24 UTC, Iain Buclaw wrote: On 6 October 2016 at 22:31, Ilya Yaroshenko via Digitalmars-d wrote: On Thursday, 6 October 2016 at 20:07:19 UTC, Iain Buclaw wrote: On 6 October 2016 at 18:53, Ilya Yaroshenko via Digitalmars-d

Re: std.math API rework

2016-10-06 Thread Iain Buclaw via Digitalmars-d
On 6 October 2016 at 22:31, Ilya Yaroshenko via Digitalmars-d wrote: > On Thursday, 6 October 2016 at 20:07:19 UTC, Iain Buclaw wrote: >> >> On 6 October 2016 at 18:53, Ilya Yaroshenko via Digitalmars-d >> wrote: >>> >>> [...] >> >> >> If

6767015388093641922

2016-10-06 Thread Walmond via Digitalmars-d
I is

[Issue 16574] [REG 2.072.0-b1] Unexplained errors about functions that overridde anything

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16574 --- Comment #5 from b2.t...@gmx.com --- In a first time the good new is that I have a reduction: interface Desc {} class Bug(T): Desc if (is(T : Desc)) {} alias Type = Bug!Bar; class Bar: Desc { Type a; void test(){} } class Baz: Bar {

Re: std.math API rework

2016-10-06 Thread Ilya Yaroshenko via Digitalmars-d
On Thursday, 6 October 2016 at 20:07:19 UTC, Iain Buclaw wrote: On 6 October 2016 at 18:53, Ilya Yaroshenko via Digitalmars-d wrote: [...] If you can prove that llvm intrinsics are pure (gcc math intrinsics are not) and that llvm intrinsics pass the unittest

Walmond send pictures down up down [your code here]

2016-10-06 Thread Walmond via Digitalmars-d
Send pictures

[Issue 16574] [REG 2.072.0-b1] Unexplained errors about functions that overridde anything

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16574 Walter Bright changed: What|Removed |Added CC|

Re: Why can't static arrays be sorted?

2016-10-06 Thread ag0aep6g via Digitalmars-d-learn
On 10/06/2016 09:54 PM, TheGag96 wrote: Interestingly enough, I found that using .each() actually compiles without the [] [...] why can the compiler consider it a range here but not .sort()? each is not restricted to ranges. It accepts other `foreach`-ables, too. The documentation says that

Re: std.math API rework

2016-10-06 Thread Iain Buclaw via Digitalmars-d
On 6 October 2016 at 18:53, Ilya Yaroshenko via Digitalmars-d wrote: > Effective work with std.experimental.ndslice and and mir.ndslice.array > requires half of std.math be an exactly aliases to LLVM intrinsics (for > LDC). > > To enable vectorization for

Re: inout delegate

2016-10-06 Thread Jinx via Digitalmars-d
On Thursday, 6 October 2016 at 15:00:56 UTC, Manu wrote: On 6 October 2016 at 00:29, Manu wrote: On 4 October 2016 at 11:15, Manu wrote: [...] I'm really struggling with this issue.. multiple times a day. I can't find a reasonable workaround.

Re: Why can't static arrays be sorted?

2016-10-06 Thread TheGag96 via Digitalmars-d-learn
On Wednesday, 5 October 2016 at 19:30:01 UTC, Jonathan M Davis wrote: It doesn't even make conceptual sense for a static array to be a range, because you can't remove elements from it. - Jonathan M Davis Interestingly enough, I found that using .each() actually compiles without the [] but

[Issue 16574] [REG 2.072.0-b1] Unexplained errors about functions that overridde anything

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16574 --- Comment #3 from b2.t...@gmx.com --- What happens is that an alias declaration inside a class creates a silent error (this is a second issue). When the alias is put out of the class the "real" error appears before those related to overriding.

Re: Shared an non-shared

2016-10-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, October 05, 2016 21:10:01 Begah via Digitalmars-d-learn wrote: > Although the triple buffer seems a good idea, there is one > problem. > I will need three time as much ram than what i currently need. > Not to mention, every time i switch buffer i will need to copy > all changes made

Re: code-d 0.12.0 - The user friendly release (code-d for noobs)

2016-10-06 Thread WebFreak001 via Digitalmars-d-announce
On Thursday, 6 October 2016 at 18:43:14 UTC, Luís Marques wrote: On Thursday, 6 October 2016 at 16:43:56 UTC, WebFreak001 wrote: code-d runs dub to get the compiler errors and display them, just press the errors/warnings button at the bottom left. Nope, the errors/warnings is always empty for

Re: code-d 0.12.0 - The user friendly release (code-d for noobs)

2016-10-06 Thread Luís Marques via Digitalmars-d-announce
On Thursday, 6 October 2016 at 16:43:56 UTC, WebFreak001 wrote: Debugging is also implemented if you install my second extension if you search for `webfreak.debug` in the extension search. Then using the code-d debug button in the statusbar you can debug your app. Works on linux, windows and

Re: color lib

2016-10-06 Thread Random D user via Digitalmars-d
On Thursday, 6 October 2016 at 14:53:52 UTC, Manu wrote: I've done another pass incorporating prior feedback, mostly focusing on documentation. Just a quick minor comment on: A8 RGB!("a",ubyte,false,0) 8 bit alpha-only color type. --> Reads like, "False what ???". Also "What is 0 ???". -->

[Issue 16600] New: Wrong error message for ambiguous mutable/immutable constructor

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16600 Issue ID: 16600 Summary: Wrong error message for ambiguous mutable/immutable constructor Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: code-d 0.12.0 - The user friendly release (code-d for noobs)

2016-10-06 Thread Luís Marques via Digitalmars-d-announce
On Thursday, 6 October 2016 at 16:43:56 UTC, WebFreak001 wrote: code-d runs dub to get the compiler errors and display them, just press the errors/warnings button at the bottom left. Nope, the errors/warnings is always empty for me. I'm on a Mac.

Re: Getting GtkD working with OpenGL

2016-10-06 Thread Mike Wey via Digitalmars-d-learn
On 10/06/2016 05:18 PM, Chalix wrote: On Thursday, 6 October 2016 at 13:35:01 UTC, Mike Parker wrote: So, change DerelictGL3.load to DerelictGL.load, then add a call to DerelictGL.reload after creating and activating the context. Thank you! That fixed the segmentation fault problem and the

Re: Rust-like collect in D

2016-10-06 Thread ag0aep6g via Digitalmars-d-learn
On 10/06/2016 07:44 PM, ag0aep6g wrote: https://dlang.org/phobos/std_container_util.html#.make More specifically, the second overload is where it's at: https://dlang.org/phobos/std_container_util.html#.make.2

Re: Rust-like collect in D

2016-10-06 Thread ag0aep6g via Digitalmars-d-learn
On 10/06/2016 04:32 PM, Nordlöw wrote: Is there a concept in D similar to Rust's `collect`: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect If not, I'm eager to implement it to support D-style containers. What would the desired interface look like? Perhaps:

Re: Rust-like collect in D

2016-10-06 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 6 October 2016 at 17:22:10 UTC, Dicebot wrote: On Thursday, 6 October 2016 at 16:56:26 UTC, Nordlöw wrote: Is there a way to do this, or do we need something similar to `collect` in Phobos? Something like import std.container.array : Array; 0.iota(n).collect!Array You mean

Re: Rust-like collect in D

2016-10-06 Thread Dicebot via Digitalmars-d-learn
On Thursday, 6 October 2016 at 16:56:26 UTC, Nordlöw wrote: Is there a way to do this, or do we need something similar to `collect` in Phobos? Something like import std.container.array : Array; 0.iota(n).collect!Array You mean semantics like this? Container collect(Container, Range) (Range

Re: Rust-like collect in D

2016-10-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, October 06, 2016 16:56:26 Nordlöw via Digitalmars-d-learn wrote: > On Thursday, 6 October 2016 at 16:14:33 UTC, Dicebot wrote: > > If an entity (i.e. container) implements OutputRange API, you > > can already do it: > > > > 0.iota(n).copy(container); > > Ahh, not quite what I

Re: color lib

2016-10-06 Thread Ilya Yaroshenko via Digitalmars-d
On Thursday, 6 October 2016 at 14:53:52 UTC, Manu wrote: I've done another pass incorporating prior feedback, mostly focusing on documentation.

Re: std.math API rework

2016-10-06 Thread Ilya Yaroshenko via Digitalmars-d
On Thursday, 6 October 2016 at 16:53:54 UTC, Ilya Yaroshenko wrote: Effective work with std.experimental.ndslice and and mir.ndslice.array requires half of std.math be an exactly EDIT: mir.ndslice.algorithm

Re: Rust-like collect in D

2016-10-06 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 6 October 2016 at 16:14:33 UTC, Dicebot wrote: If an entity (i.e. container) implements OutputRange API, you can already do it: 0.iota(n).copy(container); Ahh, not quite what I wanted... I want to mimic the functional style Rust provides, where the `container` is constructed

std.math API rework

2016-10-06 Thread Ilya Yaroshenko via Digitalmars-d
Effective work with std.experimental.ndslice and and mir.ndslice.array requires half of std.math be an exactly aliases to LLVM intrinsics (for LDC). To enable vectorization for mir.ndslice.algorithm I created internal math module [1] in Mir. But this is weird, because third side packages

Re: Rust-like collect in D

2016-10-06 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 6 October 2016 at 16:14:33 UTC, Dicebot wrote: If an entity (i.e. container) implements OutputRange API, you can already do it: 0.iota(n).copy(container); Thanks, that's what I was looking for.

Re: code-d 0.12.0 - The user friendly release (code-d for noobs)

2016-10-06 Thread WebFreak001 via Digitalmars-d-announce
On Thursday, 6 October 2016 at 11:39:17 UTC, Luís Marques wrote: On Tuesday, 4 October 2016 at 19:28:27 UTC, WebFreak001 wrote: I've been working a lot on the new features for code-d to improve the user experience for new users and lower the barrier of creating D projects. What I really wish

[Issue 16574] [REG 2.072.0-b1] Unexplained errors about functions that overridde anything

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16574 --- Comment #2 from b2.t...@gmx.com --- The culprit is this PR https://github.com/dlang/dmd/pull/5690 --

Re: Rust-like collect in D

2016-10-06 Thread Dicebot via Digitalmars-d-learn
On Thursday, 6 October 2016 at 14:32:44 UTC, Nordlöw wrote: Is there a concept in D similar to Rust's `collect`: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect If not, I'm eager to implement it to support D-style containers. What would the desired interface look like?

Re: Rust-like collect in D

2016-10-06 Thread cym13 via Digitalmars-d-learn
On Thursday, 6 October 2016 at 14:58:34 UTC, Nordlöw wrote: On Thursday, 6 October 2016 at 14:33:59 UTC, rikki cattermole wrote: So an input range to array? Sure std.array : array. No, we want a generic alternative that fills any kind of container, typically non-GC allocated. Sounds like

Re: Getting GtkD working with OpenGL

2016-10-06 Thread Chalix via Digitalmars-d-learn
On Thursday, 6 October 2016 at 13:35:01 UTC, Mike Parker wrote: So, change DerelictGL3.load to DerelictGL.load, then add a call to DerelictGL.reload after creating and activating the context. Thank you! That fixed the segmentation fault problem and the crash :) But I still struggle with the

Re: File.write write extra CR character if a string has CRLF on windows

2016-10-06 Thread Rene Zwanenburg via Digitalmars-d-learn
On Thursday, 6 October 2016 at 15:00:00 UTC, Pham wrote: string s is multi-lines (CRLF as line break) The write function will write extra CR character for each CRLF pair -> why (bug?) import std.file; import std.stdio; string s = ...; auto fHandle = File("f:\\text.txt", "w"); // open for

File.write write extra CR character if a string has CRLF on windows

2016-10-06 Thread Pham via Digitalmars-d-learn
string s is multi-lines (CRLF as line break) The write function will write extra CR character for each CRLF pair -> why (bug?) import std.file; import std.stdio; string s = ...; auto fHandle = File("f:\\text.txt", "w"); // open for writing fHandle.write(s); fHandle.close();

Re: inout delegate

2016-10-06 Thread Manu via Digitalmars-d
On 6 October 2016 at 00:29, Manu wrote: > On 4 October 2016 at 11:15, Manu wrote: >> On 4 October 2016 at 10:50, Timon Gehr via Digitalmars-d >> wrote: >>> On 03.10.2016 05:06, Manu via Digitalmars-d wrote: Okay,

Re: Rust-like collect in D

2016-10-06 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 6 October 2016 at 14:33:59 UTC, rikki cattermole wrote: So an input range to array? Sure std.array : array. No, we want a generic alternative that fills any kind of container, typically non-GC allocated.

color lib

2016-10-06 Thread Manu via Digitalmars-d
I've done another pass incorporating prior feedback, mostly focusing on documentation. http://dtest.thecybershadow.net/artifact/website-b6e2e44dd40dd7c70eb45829c02060b99ae3937b-57272ccdf902fa3f0c050d522129f2be/web/library-prerelease/std/experimental/color.html Can interested parties please give

Re: Rust-like collect in D

2016-10-06 Thread rikki cattermole via Digitalmars-d-learn
On 07/10/2016 3:32 AM, Nordlöw wrote: Is there a concept in D similar to Rust's `collect`: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect If not, I'm eager to implement it to support D-style containers. What would the desired interface look like? Perhaps:

Rust-like collect in D

2016-10-06 Thread Nordlöw via Digitalmars-d-learn
Is there a concept in D similar to Rust's `collect`: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect If not, I'm eager to implement it to support D-style containers. What would the desired interface look like? Perhaps: 0.iota(n).collect!Array Or can/should we just

[Issue 16599] Allow Template Constraint in Untemplated Function in Templated Struct

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16599 uplink.co...@googlemail.com changed: What|Removed |Added CC||uplink.co...@googlemail.com

[Issue 16599] New: Allow Template Constraint in Untemplated Function in Templated Struct

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16599 Issue ID: 16599 Summary: Allow Template Constraint in Untemplated Function in Templated Struct Product: D Version: D2 Hardware: All URL: http://dlang.org/

Re: Getting GtkD working with OpenGL

2016-10-06 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 6 October 2016 at 10:49:40 UTC, Chalix wrote: glMatrixMode(GL_MODELVIEW); /*Here the program crashes with There are two things wrong with your use of Derelict. First, though you are correctly importing derelict.opengl3.gl to get the deprecated functions (which the gl3

First Blood

2016-10-06 Thread Andrei Alexandrescu via Digitalmars-d
So, Alexandru (our first n00b) has made his first contribution, see https://github.com/dlang/dlang.org/pull/1493. Yay! In order to continue his onboarding process, I'll look for a few bugs of varying degrees of difficulty that should offer him good exposure to various areas of our toolset. If

Re: Please say hello to Alexandru

2016-10-06 Thread Meta via Digitalmars-d-announce
On Thursday, 6 October 2016 at 08:56:43 UTC, Alexandru Razvan Caciulescu wrote: On Tuesday, 4 October 2016 at 23:01:37 UTC, Andrei Alexandrescu wrote: Hello everyone, It is with great joy and honor to announce that Alexandru Razvan Caciulescu will work with the D Language Foundation

[Issue 16592] Building dlang.org does not work without a preexisting dmd installation

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16592 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Please say hello to Alexandru

2016-10-06 Thread Martin Tschierschke via Digitalmars-d-announce
On Wednesday, 5 October 2016 at 00:09:39 UTC, Walter Bright wrote: Welcome, Alexandru! +1 :-)

Re: Callbacks in D

2016-10-06 Thread Kagamin via Digitalmars-d-learn
https://dlang.org/phobos/std_concurrency.html#.receive

[Issue 16566] hasLength should enforce that length has type size_t

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16566 --- Comment #3 from anonymous4 --- (In reply to Jonathan M Davis from comment #2) > http://forum.dlang.org/post/nsn75s$v8q$1...@digitalmars.com Looks like he considers non-numeric types for length. Numeric types have no

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-06 Thread Luís Marques via Digitalmars-d
On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: - Video games, such as referring to the player character's body Many years ago I did a D port of the C-Dogs game from C to D and it was quite annoying to have to rename all the body variables to body_. It has happened in other

Re: code-d 0.12.0 - The user friendly release (code-d for noobs)

2016-10-06 Thread Patric Dexheimer via Digitalmars-d-announce
On Wednesday, 5 October 2016 at 05:53:06 UTC, Suliman wrote: Please, add Sublime support +1 for Sublime Support :)

Re: DLang IDE for macOS

2016-10-06 Thread Alexander Milushev via Digitalmars-d-learn
On Thursday, 6 October 2016 at 10:09:24 UTC, Andrea Fontana wrote: On Thursday, 6 October 2016 at 09:51:20 UTC, Alexander Milushev wrote: On Thursday, 6 October 2016 at 09:45:03 UTC, Andrea Fontana wrote: On Thursday, 6 October 2016 at 09:31:43 UTC, Alexander Milushev wrote: Hi all, Is there

Re: Struct immutable data and dict

2016-10-06 Thread Patric Dexheimer via Digitalmars-d-learn
On Thursday, 6 October 2016 at 03:48:22 UTC, Mike Parker wrote: On Thursday, 6 October 2016 at 03:05:18 UTC, Patric Dexheimer wrote: [...] There's a difference between initialization and assignment. [...] On Thursday, 6 October 2016 at 03:48:22 UTC, Mike Parker wrote: On Thursday, 6

Re: Getting GtkD working with OpenGL

2016-10-06 Thread Chalix via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 17:00:34 UTC, Mike Wey wrote: Replace "import glgdk.GLContext;" with "import gdk.GLContext;" Hey Mike, you've been a great help so far! Thank you :) I thought now I am ready to draw something, but I struggle with the GLContext and GdkGlContext. Where do I get a

Re: DLang IDE for macOS

2016-10-06 Thread Andrea Fontana via Digitalmars-d-learn
On Thursday, 6 October 2016 at 09:51:20 UTC, Alexander Milushev wrote: On Thursday, 6 October 2016 at 09:45:03 UTC, Andrea Fontana wrote: On Thursday, 6 October 2016 at 09:31:43 UTC, Alexander Milushev wrote: Hi all, Is there any good IDE for DLang for macOS? I have used Xamarin Studio with

Re: DLang IDE for macOS

2016-10-06 Thread Alexander Milushev via Digitalmars-d-learn
On Thursday, 6 October 2016 at 09:45:03 UTC, Andrea Fontana wrote: On Thursday, 6 October 2016 at 09:31:43 UTC, Alexander Milushev wrote: Hi all, Is there any good IDE for DLang for macOS? I have used Xamarin Studio with D Language Addin but currently it does not supported by developer. Also

Re: DLang IDE for macOS

2016-10-06 Thread Andrea Fontana via Digitalmars-d-learn
On Thursday, 6 October 2016 at 09:31:43 UTC, Alexander Milushev wrote: Hi all, Is there any good IDE for DLang for macOS? I have used Xamarin Studio with D Language Addin but currently it does not supported by developer. Also I have tried Idea with D Language plugin but autocomplete did not

DLang IDE for macOS

2016-10-06 Thread Alexander Milushev via Digitalmars-d-learn
Hi all, Is there any good IDE for DLang for macOS? I have used Xamarin Studio with D Language Addin but currently it does not supported by developer. Also I have tried Idea with D Language plugin but autocomplete did not work.

[Issue 16592] Building dlang.org does not work without a preexisting dmd installation

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16592 Vladimir Panteleev changed: What|Removed |Added Keywords||pull

Re: Why can't static arrays be sorted?

2016-10-06 Thread Adrian Matoga via Digitalmars-d-learn
On Thursday, 6 October 2016 at 09:17:08 UTC, pineapple wrote: On Wednesday, 5 October 2016 at 19:30:01 UTC, Jonathan M Davis wrote: Would just like to point out that this is design weirdness on Phobos' part - the library I've been writing does not have this problem. It doesn't even make

Re: Why can't static arrays be sorted?

2016-10-06 Thread pineapple via Digitalmars-d-learn
On Thursday, 6 October 2016 at 09:17:08 UTC, pineapple wrote: On Wednesday, 5 October 2016 at 19:30:01 UTC, Jonathan M Davis wrote: Would just like to point out that this is design weirdness on Phobos' part - the library I've been writing does not have this problem. It doesn't even make

Re: Why can't static arrays be sorted?

2016-10-06 Thread pineapple via Digitalmars-d-learn
On Wednesday, 5 October 2016 at 19:30:01 UTC, Jonathan M Davis wrote: Would just like to point out that this is design weirdness on Phobos' part - the library I've been writing does not have this problem. It doesn't even make conceptual sense for a static array to be a range, because you

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-06 Thread pineapple via Digitalmars-d
On Thursday, 6 October 2016 at 06:38:06 UTC, Jonathan M Davis wrote: Yeah, the fact that the body keyword is not required normally but is when you have in/out contracts is annoying, completely aside from what the keyword used is. I don't care much about losing the name body to a keyword, but I

Re: Please say hello to Alexandru

2016-10-06 Thread Alexandru Razvan Caciulescu via Digitalmars-d-announce
On Tuesday, 4 October 2016 at 23:01:37 UTC, Andrei Alexandrescu wrote: Hello everyone, It is with great joy and honor to announce that Alexandru Razvan Caciulescu will work with the D Language Foundation starting today. Please join me in welcoming him to the community. [...] Hi everyone

[Issue 14068] [AA] Concurrent access allowed

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14068 anonymous4 changed: What|Removed |Added See Also|

[Issue 16597] Initializing a shared hashmap segfaults

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16597 anonymous4 changed: What|Removed |Added Keywords||ice-on-invalid-code

[Issue 16592] Building dlang.org does not work without a preexisting dmd installation

2016-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16592 Alexandru Razvan Caciulescu changed: What|Removed |Added CC|

Callbacks in D

2016-10-06 Thread DLearner via Digitalmars-d-learn
Please, could someone post here, or provide a link to, some simple, debugged examples. Best regards

WinTab (wacom tablet API) and Windows Core Audio bindings - new DUB packages

2016-10-06 Thread Vadim Lopatin via Digitalmars-d-announce
Hello, I've published two new DUB packages. derelict-wintab: derelict binding of WinTab32.DLL - API for Wacom digitizer tablets. wasapi: translation of Windows Core Audio interfaces (Core Audio interfaces: MMDevice, WASAPI, EndpointVolume API). I'm using them in my SoundTab project -

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-06 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 06, 2016 05:25:19 Patrick Schluter via Digitalmars-d wrote: > Sorry, I find the actual body without body keyword much more > natural (i.e. intuitive) than having the body requiring it only > when there are contracts. It would be even consistent with the > template syntax

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-06 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 05, 2016 02:11:14 Meta via Digitalmars-d wrote: > I'm currently writing up a DIP to propose removing `body` as a > keyword to allow it to be used for variable names, functions, > etc. I'm looking for examples and contexts where `body` would > normally be used as a variable,