[Issue 15598] core.atomicFence is not @nogc on x86

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15598 Ketmar Dark changed: What|Removed |Added CC|

[Issue 10406] std.conv.to of string array to fixed sized array

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10406 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 15598] New: core.atomicFence is not @nogc on x86

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15598 Issue ID: 15598 Summary: core.atomicFence is not @nogc on x86 Product: D Version: D2 Hardware: x86 OS: Linux Status: NEW Severity: minor Priority: P1

Re: D's metaprogramming could be flawed

2016-01-23 Thread maik klein via Digitalmars-d
On Friday, 22 January 2016 at 14:19:30 UTC, rsw0x wrote: On Friday, 22 January 2016 at 13:28:00 UTC, maik klein wrote: On Friday, 22 January 2016 at 13:21:11 UTC, rsw0x wrote: On Friday, 22 January 2016 at 12:57:54 UTC, maik klein wrote: ... You're looking for AliasSeq in std.meta, it's a

Re: htod question

2016-01-23 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Friday, 22 January 2016 at 01:04:50 UTC, Dibyendu Majumdar wrote: On Friday, 22 January 2016 at 01:03:09 UTC, Dibyendu Majumdar wrote: On Friday, 22 January 2016 at 00:52:59 UTC, W.J. wrote: Counter question: What's so bad about the D std library ? I am trying to create bindings for

[Issue 14804] Comparing two Nullables does not check if either is null

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14804 b2.t...@gmx.com changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 10771] std.typecons.Nullable throws an exception on comparision of null values

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10771 b2.t...@gmx.com changed: What|Removed |Added See Also||https://issues.dlang.org/sh

Templates, templates, templates...

2016-01-23 Thread Voitech via Digitalmars-d-learn
Hi, I have a problem with creating proper inheritance chain with templates. First i will give some background about my problem. I'm trying to create a validator for math calculation expressions. I don't want to use regexps as this is approach gives me headache and probably will not allow

[Issue 15376] The time zone name conversions should not be compiled into Phobos

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15376 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/635cecee557bf5e82b2f614dd19e41383505c3f7 Fix for issue# 15376.

Re: Collapsing n-dimensional array to linear (1 dimensional)

2016-01-23 Thread Ali Çehreli via Digitalmars-d-learn
On 01/22/2016 04:07 AM, abad wrote: Let's say I have an array like this: int[][][] array; And I want to generate a linear int[] based on its data. Is there a standard library method for achieving this, or must I iterate over the array manually? What I'm thinking of is something like this:

Re: [dlang.org] Let's talk about the logo

2016-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-22 00:46, anonymous wrote: http://i.imgur.com/eJaKFtx.png The first one is the current logo. The last one shows just the core shape (D + moons), of course. I vote the last one as the official out of context logo. I vote the third one for the web site. -- /Jacob Carlborg

Re: DIP87: Enhanced Foreign-Language Binding

2016-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-23 02:31, Anon wrote: Ideally, by whether the `extern()` forms a block or it is attached directly to the symbol. I understand that wouldn't work with existing implementation in the compiler, but hopefully it wouldn't be too difficult to do. But I know nothing of compiler internals so

Re: core.thread.Thread.start is marked as "nothrow" but documentation says it throws

2016-01-23 Thread anonymous via Digitalmars-d-learn
On 23.01.2016 12:44, tcak wrote: https://dlang.org/phobos/core_thread.html#.Thread final nothrow Thread.start() Looking at the code, no "throw new ..." is seen, but the function "onThreadError" is called which has "throw" in it. Most weird thing is that "onThreadError" function is marked as

[Issue 10882] std.random.MersenneTwisterEngine.seed() fails if passed a static array

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10882 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: So... add maxCount and maxPos?

2016-01-23 Thread Era Scarecrow via Digitalmars-d
On Thursday, 21 January 2016 at 14:04:58 UTC, Andrei Alexandrescu wrote: On 01/21/2016 08:42 AM, Era Scarecrow wrote: I'd almost say lowestCount and highestCount would almost be better, but I am not sure. minCount is already a given. -- Andrei I have a slight problem where I'm not already

[Issue 15597] New: error messages in mixins should show context

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15597 Issue ID: 15597 Summary: error messages in mixins should show context Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: D's metaprogramming could be flawed

2016-01-23 Thread maik klein via Digitalmars-d
On Saturday, 23 January 2016 at 12:13:16 UTC, maik klein wrote: On Friday, 22 January 2016 at 14:19:30 UTC, rsw0x wrote: [...] I think that should work but it only works because you do an implicit conversion with get which is quite nice. [...] I forgot to show what `tref` was in my last

[Issue 8382] std.bitmanip opCmp bug or user error?

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8382 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

core.thread.Thread.start is marked as "nothrow" but documentation says it throws

2016-01-23 Thread tcak via Digitalmars-d-learn
https://dlang.org/phobos/core_thread.html#.Thread final nothrow Thread.start() Looking at the code, no "throw new ..." is seen, but the function "onThreadError" is called which has "throw" in it. Most weird thing is that "onThreadError" function is marked as "nothrow" but it still throws.

DIP 88: Simple form of named parameters

2016-01-23 Thread Jacob Carlborg via Digitalmars-d
This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag -- /Jacob Carlborg

Re: [dlang.org] Let's talk about the logo

2016-01-23 Thread Mike Parker via Digitalmars-d
On Saturday, 23 January 2016 at 01:23:20 UTC, H. S. Teoh wrote: This is not the governance of a country. If you don't like the way the decisions are being made, you always have the freedom to take the source code (except for the proprietary backend), fork it, and build your own community.

Re: [dlang.org] Let's talk about the logo

2016-01-23 Thread Walter Bright via Digitalmars-d
I always wanted it to be a gif so the planet would appear to be subtly rotating and the edge of Deimos might twinkle slightly :-)

Re: Templates, templates, templates...

2016-01-23 Thread anonymous via Digitalmars-d-learn
On 23.01.2016 12:30, Voitech wrote: Ok so i want to hold different types in LogicRule maybe Algebraic implementation would do? private alias ControllTemplate(T) =Rule!(T,ControllFlag); private alias SymbolRule =ControllTemplate!(SymbolType); private alias StringRule

Re: std.zip for Binary example

2016-01-23 Thread locco via Digitalmars-d-learn
On Sunday, 17 January 2016 at 10:43:55 UTC, Sean Campbell wrote: On Sunday, 17 January 2016 at 10:34:19 UTC, locco wrote: Hi :) I found this example: == import std.file: write; import std.string: representation; void main() {

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-23 17:35, Mathias Lang via Digitalmars-d wrote: About the rationale: > Supporting named parameters directly in the language prevents the need to add workarounds with weird looking syntax like Flag That's going the opposite way of the current trend, which is shift as much feature to

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Dejan Lekic via Digitalmars-d
On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag I already see confusing code like: foo(10, 20, width: ((big) ? 600 : 200), height: ((big) ?

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Marc Schütz via Digitalmars-d
On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag Some comments: 1) Default values You should specify how to use both the `:` syntax and a

Re: Is memory-safe IO possible?

2016-01-23 Thread Kagamin via Digitalmars-d-learn
You can try to write a trusted wrapper for one of curl functions and ask for a review on forum. Maybe it will be fruitful.

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread tcak via Digitalmars-d
On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag Without making things any complex, the simplest thought of mine is: Keep everything

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-23 16:34, tcak wrote: Without making things any complex, the simplest thought of mine is: Keep everything same. But allow caller to put name of parameter front its value wherever desired. Let's say, Rect createRect(int x, int y, int width, int height); So you could call it like:

Re: [dlang.org] Let's talk about the logo

2016-01-23 Thread Artur Skawina via Digitalmars-d
On 01/23/16 02:11, ronaldmc via Digitalmars-d wrote: > > What happens if a technical feature is vetoed by someone is charge even if it > has merit? Every wrong decision affects the project negatively. > Linux Foundation has a board members to approve or not new features or > changes, and

Re: Adam D. Ruppe's Minigui using example

2016-01-23 Thread Andre Polykanine via Digitalmars-d-learn
On Saturday, 16 January 2016 at 03:14:01 UTC, Adam D. Ruppe wrote: On Saturday, 16 January 2016 at 01:27:32 UTC, Andre Polykanine wrote: Does anyone have an actual example of, say, a simple form with a set of radio buttons or check boxes to start with? Thanks in advance! Sort of. I still

std.simd vision

2016-01-23 Thread Iakh via Digitalmars-d
I'm thinking of implementation std.simd in fashion different to https://github.com/TurkeyMan/simd since it looks dead and too sophisticated. My proposal is: - std.simd - processor independent intrinsics and some high level stuff. You only depend on different sizes of SIMD vector.

Re: Please change alias ReplaceArrayWithPointer = Flag!"replaceArrayWithPointer"

2016-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 01/22/2016 09:48 AM, Marc Schütz wrote: On Thursday, 21 January 2016 at 20:42:17 UTC, Jack Stouffer wrote: On Thursday, 21 January 2016 at 19:31:19 UTC, Andrei Alexandrescu wrote: * Do NOT alias Flag!"frob" to a new name. This is unnecessary, unhelpful, and wasteful. I disagree. Making an

[Issue 15592] Template specializations don't work in nested scope

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15592 Ivan Kazmenko changed: What|Removed |Added CC||ga...@mail.ru --

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-23 15:54, Marc Schütz wrote: Some comments: 1) Default values You should specify how to use both the `:` syntax and a default parameter value, including an example. They are often going to be used together, and it needs to be clear how they interact. I can add an example. 2)

Re: Please change alias ReplaceArrayWithPointer = Flag!"replaceArrayWithPointer"

2016-01-23 Thread Andrei Alexandrescu via Digitalmars-d
On 01/22/2016 09:48 AM, Marc Schütz wrote: On Thursday, 21 January 2016 at 20:42:17 UTC, Jack Stouffer wrote: On Thursday, 21 January 2016 at 19:31:19 UTC, Andrei Alexandrescu wrote: * Do NOT alias Flag!"frob" to a new name. This is unnecessary, unhelpful, and wasteful. I disagree. Making an

Re: [dlang.org] Let's talk about the logo

2016-01-23 Thread karabuta via Digitalmars-d
On Saturday, 23 January 2016 at 08:25:49 UTC, Walter Bright wrote: I always wanted it to be a gif so the planet would appear to be subtly rotating and the edge of Deimos might twinkle slightly :-) If it was meant to be a git then it makes more sense why it was as it is originally (but

Re: [dlang.org] Let's talk about the logo

2016-01-23 Thread karabuta via Digitalmars-d
On Friday, 22 January 2016 at 20:28:57 UTC, anonymous wrote: On 22.01.2016 20:53, ronaldmc wrote: I don't want to start a war, but this isn't community? I mean aren't we trying to make things better, because the way you said it seems like a dictatorship. It's dictatorship insofar as Walter

Re: Please change alias ReplaceArrayWithPointer = Flag!"replaceArrayWithPointer"

2016-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-22 23:00, Ilya wrote: DIP please! --Ilya http://forum.dlang.org/post/n8024o$dlj$1...@digitalmars.com -- /Jacob Carlborg

Re: Shared library question

2016-01-23 Thread Benjamin Thaut via Digitalmars-d-learn
On Saturday, 23 January 2016 at 00:38:45 UTC, Dibyendu Majumdar wrote: On Friday, 22 January 2016 at 22:06:35 UTC, Dibyendu Majumdar wrote: Hi I am trying to create a simple shared library that exports a D function, but when I try to link to it I get errors such as: error LNK2001:

Re: [dlang.org] Let's talk about the logo

2016-01-23 Thread ronaldmc via Digitalmars-d
On Saturday, 23 January 2016 at 01:23:20 UTC, H. S. Teoh wrote: ... And besides, calling something a "dictatorship" is again confusing the development of a programming language with running a government. I still fail to see the connection between the two. Because maybe you don't read too

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Chris Wright via Digitalmars-d
On Sat, 23 Jan 2016 15:19:03 +0100, Jacob Carlborg wrote: > This is mostly to prevent ugly hacks like Flag [1]. > > http://wiki.dlang.org/DIP88 Please add proposals to http://wiki.dlang.org/List_of_DIP in the future. (I just did it for you.) There's a DIP category, but nobody includes a

Re: [dlang.org] Let's talk about the logo

2016-01-23 Thread rsw0x via Digitalmars-d
On Saturday, 23 January 2016 at 15:41:43 UTC, ronaldmc wrote: On Saturday, 23 January 2016 at 01:23:20 UTC, H. S. Teoh wrote: [...] Because maybe you don't read too much (outside programming), you can easily find the term being used on open source. i.e:

Define "createXXX" functions for the constructors of class XXX

2016-01-23 Thread Johan Engelen via Digitalmars-d-learn
Hi all, While trying to interface C++ and D, I have to new a few D objects in C++ code. I am doing this using a D function: "XXX createXXX(...) { return new XXX(...); }". I am sure there must be some great way to automatically generate these creator functions, but I don't know how to do it.

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Mint via Digitalmars-d
On Saturday, 23 January 2016 at 15:34:00 UTC, tcak wrote: On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag Without making things any

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Mathias Lang via Digitalmars-d
2016-01-23 15:19 GMT+01:00 Jacob Carlborg via Digitalmars-d < digitalmars-d@puremagic.com>: > This is mostly to prevent ugly hacks like Flag [1]. > > http://wiki.dlang.org/DIP88 > > [1] https://dlang.org/phobos/std_typecons.html#.Flag > > -- > /Jacob Carlborg > About the rationale: > Supporting

[Issue 11500] Bringing mixed-in operators and constructors to the overload set

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11500 Adam D. Ruppe changed: What|Removed |Added CC|

Re: Why do some attributes start with '@' while others done't?

2016-01-23 Thread karabuta via Digitalmars-d
On Friday, 22 January 2016 at 04:30:33 UTC, tsbockman wrote: On Friday, 22 January 2016 at 02:13:56 UTC, Ola Fosheim Grøstad wrote: [...] I don't necessarily disagree with your overall point, but I think the question of whether a few attributes have an @ attached to them or not ranks pretty

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Marc Schütz via Digitalmars-d
On Saturday, 23 January 2016 at 16:38:13 UTC, Jacob Carlborg wrote: void foo(int a:, string b:); void foo(string b:, int a:); void main() { foo(a: 3, b: "asd"); } What should happen in the above example? Error or which function should be called? I hadn't take this into consideration;

Re: D is now catching C++ exceptions!

2016-01-23 Thread Iain Buclaw via Digitalmars-d-announce
On 18 January 2016 at 23:26, Walter Bright via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > at least for 64 bit Linux. Other platforms to follow. > > https://github.com/D-Programming-Language/dmd/pull/5342 > > This is what Andrei and I call "enabling" technology, as

Re: Why do some attributes start with '@' while others done't?

2016-01-23 Thread tsbockman via Digitalmars-d
On Saturday, 23 January 2016 at 20:07:48 UTC, karabuta wrote: On Friday, 22 January 2016 at 04:30:33 UTC, tsbockman wrote: I don't necessarily disagree with your overall point, but I think the question of whether a few attributes have an @ attached to them or not ranks pretty low on the list

Re: Possible to get Class of Interface at runtime

2016-01-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 23 January 2016 at 21:03:21 UTC, Josh Phillips wrote: I tried this but it will return A not B Are you sure you correctly casted first?

Re: Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Igor via Digitalmars-d
The installer should be modernized and provide path information and resolve dependencies properly before installing. It is clear that dmd was not designed for windows use. Also, sc.ini global variables should be at the top most section: [Environment] DFLAGS="-I%@P%\..\..\src\phobos"

[Issue 15599] New: Broken link here: https://dlang.org/features2.html

2016-01-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15599 Issue ID: 15599 Summary: Broken link here: https://dlang.org/features2.html Product: D Version: D2 Hardware: Other OS: Other Status: NEW Severity: minor

Re: Possible to get Class of Interface at runtime

2016-01-23 Thread via Digitalmars-d-learn
On Saturday, 23 January 2016 at 21:03:21 UTC, Josh Phillips wrote: On Friday, 22 January 2016 at 23:44:34 UTC, Adam D. Ruppe wrote: There's a .classinfo property that works on Objects. If you have an interface, cast to Object first, and check for null, then get .classinfo off that. I tried

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread Jonathan M Davis via Digitalmars-d
On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag To be pedantic, this would be adding named arguments, not named parameters. The parameters

Re: Possible to get Class of Interface at runtime

2016-01-23 Thread Josh Phillips via Digitalmars-d-learn
On Friday, 22 January 2016 at 23:44:34 UTC, Adam D. Ruppe wrote: There's a .classinfo property that works on Objects. If you have an interface, cast to Object first, and check for null, then get .classinfo off that. I tried this but it will return A not B

Re: Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Igor via Digitalmars-d
On Saturday, 23 January 2016 at 22:47:35 UTC, Walter Bright wrote: On 1/23/2016 1:38 PM, Igor wrote: As of now I personally cannot use dmd to build windows apps. You know, sc.ini is editable by you! Yes, But why do you expect me to be so smart or have a desire to waste my time looking for

Re: alias template parameter

2016-01-23 Thread QAston via Digitalmars-d-learn
On Friday, 21 June 2013 at 14:08:43 UTC, Sergei Nosov wrote: Hi! I've been thinking about how alias template parameters work and I'm really confused =) It makes perfect sense for literals, names, etc. But what I can't get is how does it work for delegates. If I have a function auto

Re: Bruce Eckel is evaluating languages

2016-01-23 Thread Jack Stouffer via Digitalmars-d-announce
On Friday, 22 January 2016 at 20:19:55 UTC, Ali Çehreli wrote: https://www.reddit.com/r/programming/comments/426pwq/a_language_is_more_than_a_language/ Would someone from the D community add D to his project: http://bruceeckel.github.io/Language-Evaluation-Checklist/ Ali Meh. Doesn't

Improving CSV parsing performance, Episode 2 (Was: Re: Speed of csvReader)

2016-01-23 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Jan 22, 2016 at 10:04:58PM +, data pulverizer via Digitalmars-d-learn wrote: [...] > I guess the next step is allowing Tuple rows with mixed types. Alright. I threw together a new CSV parsing function that loads CSV data into an array of structs. Currently, the implementation is not

Re: Define "createXXX" functions for the constructors of class XXX

2016-01-23 Thread tcak via Digitalmars-d-learn
On Saturday, 23 January 2016 at 19:42:29 UTC, Johan Engelen wrote: Hi all, While trying to interface C++ and D, I have to new a few D objects in C++ code. I am doing this using a D function: "XXX createXXX(...) { return new XXX(...); }". I am sure there must be some great way to

Re: Dub needs some additions

2016-01-23 Thread Igor via Digitalmars-d
On Saturday, 23 January 2016 at 20:54:36 UTC, develop32 wrote: On Saturday, 23 January 2016 at 20:24:05 UTC, Igor wrote: Some simple extensions to dub are required for proper windows support: 1. The Ability to generate full build selections for Visual D. I only get Win32 when using `dub

Re: Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Walter Bright via Digitalmars-d
On 1/23/2016 3:49 PM, Igor wrote: Yes, But why do you expect me to be so smart or have a desire to waste my time looking for paths and such when YOU can write about 100 lines of code in about the same time it would take me to get sc.ini to work properly? There is a multiplicative factor here.

Re: Why do some attributes start with '@' while others done't?

2016-01-23 Thread karabuta via Digitalmars-d
On Saturday, 23 January 2016 at 20:11:35 UTC, tsbockman wrote: On Saturday, 23 January 2016 at 20:07:48 UTC, karabuta wrote: On Friday, 22 January 2016 at 04:30:33 UTC, tsbockman wrote: I don't necessarily disagree with your overall point, but I think the question of whether a few attributes

Dub needs some additions

2016-01-23 Thread Igor via Digitalmars-d
Some simple extensions to dub are required for proper windows support: 1. The Ability to generate full build selections for Visual D. I only get Win32 when using `dub generate VisualD`. Win64 support should be added, along with alternate compiler support. (GDC and LDC) 2. The ability to

Re: Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Walter Bright via Digitalmars-d
On 1/23/2016 1:38 PM, Igor wrote: As of now I personally cannot use dmd to build windows apps. You know, sc.ini is editable by you!

Re: Define "createXXX" functions for the constructors of class XXX

2016-01-23 Thread Chris Wright via Digitalmars-d-learn
On Sat, 23 Jan 2016 19:42:29 +, Johan Engelen wrote: > // Somehow define these guys automatically, "genCreateCtors!(XXX)" ? >XXX createXXX(int a, int b) { return new XXX(a, b); } >XXX createXXX(bool flag) { return new XXX(flag); } Check out http://dpaste.dzfl.pl/430dabf25935 I used

Re: Dub needs some additions

2016-01-23 Thread develop32 via Digitalmars-d
On Saturday, 23 January 2016 at 20:24:05 UTC, Igor wrote: Some simple extensions to dub are required for proper windows support: 1. The Ability to generate full build selections for Visual D. I only get Win32 when using `dub generate VisualD`. Win64 support should be added, along with

Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Igor via Digitalmars-d
I feel like I am in the cave man times. I installed Dmd2 from scratch. VisualD x64 project would not compile due to libucrt.lib not being found. Using Process Monitor, it seems that dmd is looking all over the place for libucrt.lib but can't find it. Check out sci.ini has some weird

Re: [dlang.org] Let's talk about the logo

2016-01-23 Thread Walter Bright via Digitalmars-d
On 1/23/2016 11:47 AM, karabuta wrote: On Saturday, 23 January 2016 at 08:25:49 UTC, Walter Bright wrote: I always wanted it to be a gif so the planet would appear to be subtly rotating and the edge of Deimos might twinkle slightly :-) If it was meant to be a git then it makes more sense why

Re: Dub needs some additions

2016-01-23 Thread develop32 via Digitalmars-d
On Saturday, 23 January 2016 at 21:24:27 UTC, Igor wrote: No, I am talking about adding the different build options inside the visual studio project. When one generates the project, it should add the 64bit build options regardless. It is a standard with all Visual Studio projects in C++, C#,

Re: Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Mike Parker via Digitalmars-d
On Saturday, 23 January 2016 at 23:49:23 UTC, Igor wrote: Yes, But why do you expect me to be so smart or have a desire to waste my time looking for paths and such when YOU can write about 100 lines of code in about the same time it would take me to get sc.ini to work properly? There is a

Re: Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Mike Parker via Digitalmars-d
On Sunday, 24 January 2016 at 05:16:06 UTC, Igor wrote: Please don't parrot! I, Of course, used the installer and it didn't work, else why would I be here? The installer is obviously flawed, if you looked in to this you would see that it is the case. When you said, "I installed Dmd2 from

Re: Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Brad Anderson via Digitalmars-d
On Saturday, 23 January 2016 at 21:38:19 UTC, Igor wrote: I feel like I am in the cave man times. I installed Dmd2 from scratch. VisualD x64 project would not compile due to libucrt.lib not being found. Sorry you are having trouble. The Universal CRT and Visual Studio 2015 are very new and

First project: questions on how-to, and on language features

2016-01-23 Thread Alex Vincent via Digitalmars-d-learn
Source code: https://alexvincent.us/d-language/samples/intervalmap-rev1.d.txt After reading Ali Çehreli's book, "Programming in D", I wrote this little sample up as a starting point for my explorations into D. I've long admired the D language, but I've never actually tried to write practical

Re: Improving CSV parsing performance, Episode 2 (Was: Re: Speed of csvReader)

2016-01-23 Thread Jesse Phillips via Digitalmars-d-learn
On Sunday, 24 January 2016 at 01:57:11 UTC, H. S. Teoh wrote: - Ummm... make it ready for integration with std.csv maybe? ;-) T My suggestion is to take the unittests used in std.csv and try to get your code working with them. As fastcsv limitations would prevent replacing the std.csv

Re: Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Igor via Digitalmars-d
On Sunday, 24 January 2016 at 00:46:32 UTC, Walter Bright wrote: Sucking the life force from D users is all the sustenance I need. Lol, ok! ;) Well, Sorry, I don't have much life force to give!

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread jmh530 via Digitalmars-d
On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag Someone on another thread made a comment that it wasn't clear what : does in D. I suspect

Re: Dub needs some additions

2016-01-23 Thread Igor via Digitalmars-d
On Sunday, 24 January 2016 at 00:24:27 UTC, develop32 wrote: On Saturday, 23 January 2016 at 21:24:27 UTC, Igor wrote: Ah, yeah, that makes sense. To me personally setting project working directory to $(OUTDIR) when generating would be nice. Doesn't sound like a hard thing to do, I'll try

Re: Dmd sc.ini and VS do not work well together!

2016-01-23 Thread Igor via Digitalmars-d
On Sunday, 24 January 2016 at 02:59:02 UTC, Mike Parker wrote: On Saturday, 23 January 2016 at 23:49:23 UTC, Igor wrote: If editing a configuration file is so difficult, you should use the installer. It will find your Microsoft tool installations and configure everything for you. Please