Re: Gui in D: I miss this project

2017-01-17 Thread Shachar Shemesh via Digitalmars-d
On 18/01/17 05:27, rikki cattermole wrote: On 18/01/2017 3:56 AM, Shachar Shemesh wrote: On 17/01/17 15:58, Adam D. Ruppe wrote: On Tuesday, 17 January 2017 at 13:46:21 UTC, Vadim Lopatin wrote: There is a workaround: it's possible to create DlangUI theme which looks like native OSX app. It

Re: Gui in D: I miss this project

2017-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2017-01-18 08:22, Shachar Shemesh wrote: IIRC, QT also uses native widgets when they are available (i.e. - on anything other than Linux). "As with Cocoa and Carbon, Qt provides widgets that look like those described in the Human Interface Descriptions. Qt's widgets use HIThemes to

Re: Initializing floating point types with explicit mantisa and exponent

2017-01-17 Thread kinke via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 00:08:24 UTC, Nordlöw wrote: How do I best initialize a D double to an exact mantissa and exponent representation? I'm specifically interested in 2^^i for all i in [min_exp, max_exp] If it doesn't have to be D ;), it can be as simple as

Re: std.traits vcs __traits

2017-01-17 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, January 17, 2017 11:17:10 QAston via Digitalmars-d wrote: > On Monday, 16 January 2017 at 19:45:33 UTC, Jonathan M Davis > > wrote: > > I can see that as an argument not to add something that it's in > > std.traits to __traits or why something should be added to > > std.traits rather

[Issue 16736] Retrieving cUrl time values is quite cumbersome

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16736 github-bugzi...@puremagic.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 16736] Retrieving cUrl time values is quite cumbersome

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16736 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/1d6076760b1fe13a2b12c25a6361f99f087676d3 Fix Issue 16736 - fixed broken links

[Issue 15154] Wrong overload resolution with implicit conversion of other vectorized parameter __vector(void[16])

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15154 bitter.ta...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Thread will get garbage collected?

2017-01-17 Thread Rene Zwanenburg via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 08:58:33 UTC, Arun Chandrasekaran wrote: Interesting. Why doesn't the thread get GC'd in this case even without any reference still active? There will be a reference to it in druntime itself: http://dlang.org/phobos/core_thread.html#.Thread.getThis

[Issue 17098] this programworked on DMD 2072.2, not it does not compile dmd 2073 any betas

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17098 --- Comment #2 from steven kladitis --- It does not compile with 32 or 64 bit. dmd -m64 it fails also and takes forever. --

[Issue 8471] std.stdio.readf should be @trusted

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8471 --- Comment #5 from Andrei Alexandrescu --- (In reply to Jakub Łabaj from comment #4) > According to Steven's blog post > (http://dlang.org/blog/2016/09/28/how-to-write-trusted-code-in-d/) I should > "never use @trusted on template

[Issue 16193] opApply() doesn't heap allocate closure

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16193 anonymous4 changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 16468] __traits(compiles, ...) doesn't work for super, always evaluates false

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16468 bitter.ta...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 15428] __traits(compiles, super()) cause error "multiple constructor calls" later

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15428 bitter.ta...@gmx.com changed: What|Removed |Added CC||meapineap...@gmail.com --- Comment #2

Re: Getters/setters generator

2017-01-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/17/17 12:08 PM, Mark wrote: On Tuesday, 17 January 2017 at 09:17:56 UTC, Andrei Alexandrescu wrote: On 1/17/17 9:32 AM, Eugene Wissner wrote: Ah, well thanks. I don't think it makes much sense since it would be easier to write a complete setter if the user needs extra checks. Accessors

Re: Initializing floating point types with explicit mantisa and exponent

2017-01-17 Thread Nordlöw via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 16:40:57 UTC, kinke wrote: If it doesn't have to be D ;), it can be as simple as `core.stdc.math.ldexp(1, exponent)`. No CTFE though. Isn't it a simple as 2.0^^exponent ?

Re: Initializing floating point types with explicit mantisa and exponent

2017-01-17 Thread Nordlöw via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 18:25:46 UTC, kinke wrote: It should and I looked into that as well, but I didn't like the implementation as loop: https://github.com/dlang/phobos/blob/master/std/math.d#L5988 A special case for base x == 2 wouldn't hurt. That seems strange. Why isn't that a

[Issue 15428] __traits(compiles, super()) cause error "multiple constructor calls" later

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15428 bitter.ta...@gmx.com changed: What|Removed |Added CC||bitter.ta...@gmx.com --- Comment #3

Re: std.traits vcs __traits

2017-01-17 Thread Nordlöw via Digitalmars-d
On Monday, 16 January 2017 at 11:20:16 UTC, Nordlöw wrote: That's exactly my plan. Plan: https://github.com/dlang/phobos/pull/5038 Feedsback, please.

[Issue 16309] DMD segfault with __traits(getProtection)

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16309 bitter.ta...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Voting for std.experimental.checkedint

2017-01-17 Thread deadalnix via Digitalmars-d
Alright some feedback. It is rather disappointing that Warn and Abort only write to stderr. Being able to specify the sink would be great. i may want to log the issue or something. There is option to throw on error. Checked!(Checked!(int, ProperCompare), WithNaN) is rather inelegent. Why

Re: CTFE Status

2017-01-17 Thread Nordlöw via Digitalmars-d
On Tuesday, 17 January 2017 at 06:36:58 UTC, Stefan Koch wrote: Just found a bug with recursive functions, which is now fixed. So time for some perf: Impressive speedup! What remains? Are you adding more tests to the Phobos unittests?

Re: C++-style mutable members

2017-01-17 Thread ketmar via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 20:21:34 UTC, Nordlöw wrote: Is there a way to mimic C++-style `mutable` members in D? sure: don't use `const`. otherwise — no, there is simply no way to «mimic» 'em due to completely different meaning of `const` in D and C++.

[Issue 17104] New: "Real close to the machine" webpage error

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17104 Issue ID: 17104 Summary: "Real close to the machine" webpage error Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority:

[Issue 15676] The compiler does not preserve @disable while generating .di files

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15676 bitter.ta...@gmx.com changed: What|Removed |Added CC||bitter.ta...@gmx.com --- Comment #1

C++-style mutable members

2017-01-17 Thread Nordlöw via Digitalmars-d-learn
Is there a way to mimic C++-style `mutable` members in D?

[Issue 16193] opApply() doesn't heap allocate closure

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16193 --- Comment #18 from Dicebot --- https://trello.com/c/ZQivF6Jj/105-bugzilla-github-integration-issue :( --

[Issue 17044] Bugzilla integration fails with reverts and multiple branches

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17044 --- Comment #1 from anonymous4 --- Or just do nothing for merges. --

Re: Voting for std.experimental.checkedint

2017-01-17 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 17 January 2017 at 11:53:16 UTC, Atila Neves wrote: Same here. Atila No interest either. Have zilch problems with integers.

Re: Gtkd how to filter TreeView according to user input

2017-01-17 Thread Erdem via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 19:07:21 UTC, Ali Çehreli wrote: On 01/17/2017 01:25 AM, Erdem wrote: > void main(string[] args) > { > Main.init(args); > new MyWindow(); > Main.run(); > } I have no experience with Gtkd but the code inside main looks fundamentally wrong. One would

[Issue 16824] std.experimental.allocator.dispose leaks memory for arrays of more than 1 dimension

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16824 --- Comment #10 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/935d4ada9aeaaf5f105b75b84ca6ef72a053d962 Issue 16824 - std.experimental.allocator.dispose leaks

Re: C++-style mutable members

2017-01-17 Thread Nordlöw via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 20:47:35 UTC, ketmar wrote: Is there a way to mimic C++-style `mutable` members in D? sure: don't use `const`. otherwise — no, there is simply no way to «mimic» 'em due to completely different meaning of `const` in D and C++. I'm aware of the difference. I'm

[Issue 17098] this programworked on DMD 2072.2, not it does not compile dmd 2073 any betas

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17098 Martin Nowak changed: What|Removed |Added OS|Windows |All

[Issue 16406] Compiler segfaults on __traits(getprotection, symbol)

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16406 bitter.ta...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Gtkd how to filter TreeView according to user input

2017-01-17 Thread Ali Çehreli via Digitalmars-d-learn
On 01/17/2017 01:25 AM, Erdem wrote: > void main(string[] args) > { > Main.init(args); > new MyWindow(); > Main.run(); > } I have no experience with Gtkd but the code inside main looks fundamentally wrong. One would expect you to do something with the MyWindow object: auto w

[Issue 17065] [REG2.072] Unique does not work with private members

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17065 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #5

[Issue 17098] this programworked on DMD 2072.2, not it does not compile dmd 2073 any betas

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17098 --- Comment #4 from Martin Nowak --- dmd eventually finished after some whooping 14,5 minutes :o, but ran into a codegen issue, same with 2.071.2, both on linux-64. Internal error: backend/cgreg.c 405 865.86user 0.49system

Printing a floats in maximum precision

2017-01-17 Thread Nordlöw via Digitalmars-d-learn
What's the easiest way to print a double in maximum precision?

Re: C++-style mutable members

2017-01-17 Thread ketmar via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 20:50:34 UTC, Nordlöw wrote: On Tuesday, 17 January 2017 at 20:47:35 UTC, ketmar wrote: Is there a way to mimic C++-style `mutable` members in D? sure: don't use `const`. otherwise — no, there is simply no way to «mimic» 'em due to completely different meaning of

Re: CTFE Status

2017-01-17 Thread Nordlöw via Digitalmars-d
On Tuesday, 17 January 2017 at 21:50:42 UTC, Stefan Koch wrote: There are still features to add : - floating point. - UTF-de/re-encodung. - slicing - concat - pointer/ref - member-function calls But after this is done all the 1.0 goals are reached. Forget something, && and || also needs to

Re: CTFE Status

2017-01-17 Thread Stefan Koch via Digitalmars-d
On Tuesday, 17 January 2017 at 20:06:46 UTC, Nordlöw wrote: On Tuesday, 17 January 2017 at 06:36:58 UTC, Stefan Koch wrote: Just found a bug with recursive functions, which is now fixed. So time for some perf: Impressive speedup! What remains? Are you adding more tests to the Phobos

Re: CTFE Status

2017-01-17 Thread Stefan Koch via Digitalmars-d
On Tuesday, 17 January 2017 at 21:47:51 UTC, Stefan Koch wrote: On Tuesday, 17 January 2017 at 20:06:46 UTC, Nordlöw wrote: On Tuesday, 17 January 2017 at 06:36:58 UTC, Stefan Koch wrote: Just found a bug with recursive functions, which is now fixed. So time for some perf: Impressive

Re: CTFE Status

2017-01-17 Thread Stefan Koch via Digitalmars-d
On Tuesday, 17 January 2017 at 22:06:47 UTC, Nordlöw wrote: So I reckon the Phobos unittests are quite incomplete, then? Not really, I still use a fallback to the old interpreter for the unimplemented features.

Re: CTFE Status

2017-01-17 Thread Nordlöw via Digitalmars-d
On Tuesday, 17 January 2017 at 22:11:21 UTC, Stefan Koch wrote: Not really, I still use a fallback to the old interpreter for the unimplemented features. Does this mean that the newCTFE branch is usable now? And that I get performance improvements for the expression nodes you have

[Issue 17066] [REG2.073a] std.regex captures got immutable

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17066 Dmitry Olshansky changed: What|Removed |Added Keywords||pull

Re: Pry v0.3.1 is out!

2017-01-17 Thread Dmitry Olshansky via Digitalmars-d-announce
On 1/17/17 1:16 PM, Bastiaan Veelo wrote: On Monday, 16 January 2017 at 22:29:01 UTC, Dmitry Olshansky wrote: I think left-recursion is better handled at the grammar level. What I currently have is parser combinators level where adding this transformation is awkward and too much magic IMO.

Re: C++-style mutable members

2017-01-17 Thread Namespace via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 20:21:34 UTC, Nordlöw wrote: Is there a way to mimic C++-style `mutable` members in D? You could store a ptr to the member outside: import std.stdio; private int* _pid; struct A { int id; this(int id) {

Re: Pry v0.3.1 is out!

2017-01-17 Thread Bastiaan Veelo via Digitalmars-d-announce
On Tuesday, 17 January 2017 at 21:10:17 UTC, Dmitry Olshansky wrote: On 1/17/17 1:16 PM, Bastiaan Veelo wrote: On Monday, 16 January 2017 at 22:29:01 UTC, Dmitry Olshansky wrote: I think left-recursion is better handled at the grammar level. What I currently have is parser combinators level

[Issue 15630] gdb: for enums values

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15630 bitter.ta...@gmx.com changed: What|Removed |Added CC||bitter.ta...@gmx.com --- Comment #1

Re: Voting for std.experimental.checkedint

2017-01-17 Thread Meta via Digitalmars-d
On Friday, 13 January 2017 at 12:39:38 UTC, Robert burner Schadek wrote: This is the voting thread to decide if the proposed addition to Phobos, std.experimental.checkedint, should be accepted. To vote, please respond to this post. You have three options: * Yes * Yes with a single condition *

Re: DMD Refuses to Compile Multiple Source Files

2017-01-17 Thread Samwise via Digitalmars-d-learn
On Wednesday, 18 January 2017 at 02:48:45 UTC, James Buren wrote: Import the source file containing the external function instead of writing that prototype. It should compile then. This seems like a workaround more than a permanent solution. It would work, but still. I'm also not sure about

Re: DMD Refuses to Compile Multiple Source Files

2017-01-17 Thread Stefan Koch via Digitalmars-d-learn
On Wednesday, 18 January 2017 at 03:11:08 UTC, Samwise wrote: On Wednesday, 18 January 2017 at 02:48:45 UTC, James Buren wrote: Import the source file containing the external function instead of writing that prototype. It should compile then. This seems like a workaround more than a permanent

Re: Gui in D: I miss this project

2017-01-17 Thread rikki cattermole via Digitalmars-d
On 18/01/2017 3:56 AM, Shachar Shemesh wrote: On 17/01/17 15:58, Adam D. Ruppe wrote: On Tuesday, 17 January 2017 at 13:46:21 UTC, Vadim Lopatin wrote: There is a workaround: it's possible to create DlangUI theme which looks like native OSX app. It usually isn't the theme, it is the little

Re: DMD Refuses to Compile Multiple Source Files

2017-01-17 Thread Samwise via Digitalmars-d-learn
On Wednesday, 18 January 2017 at 03:25:47 UTC, Stefan Koch wrote: On Wednesday, 18 January 2017 at 03:11:08 UTC, Samwise wrote: On Wednesday, 18 January 2017 at 02:48:45 UTC, James Buren wrote: Import the source file containing the external function instead of writing that prototype. It should

Re: Printing a floats in maximum precision

2017-01-17 Thread Nicholas Wilson via Digitalmars-d-learn
On Wednesday, 18 January 2017 at 00:23:37 UTC, pineapple wrote: On Wednesday, 18 January 2017 at 00:09:42 UTC, Nordlöw wrote: What's the easiest way to print a double in maximum precision? https://github.com/pineapplemachine/mach.d/blob/master/mach/text/numeric/floats.d#L60 You can also try

Re: Voting for std.experimental.checkedint

2017-01-17 Thread Chris Wright via Digitalmars-d
On Fri, 13 Jan 2017 12:39:38 +, Robert burner Schadek wrote: > This is the voting thread to decide if the proposed addition to Phobos, > std.experimental.checkedint, should be accepted. > > To vote, please respond to this post. You have three options: > > * Yes * Yes with a single condition

[Issue 17098] this programworked on DMD 2072.2, not it does not compile dmd 2073 any betas

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17098 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #1

Re: Gui in D: I miss this project

2017-01-17 Thread Shachar Shemesh via Digitalmars-d
On 17/01/17 15:58, Adam D. Ruppe wrote: On Tuesday, 17 January 2017 at 13:46:21 UTC, Vadim Lopatin wrote: There is a workaround: it's possible to create DlangUI theme which looks like native OSX app. It usually isn't the theme, it is the little details of user interaction that the native ones

Re: DMD Refuses to Compile Multiple Source Files

2017-01-17 Thread ketmar via Digitalmars-d-learn
On Wednesday, 18 January 2017 at 03:37:46 UTC, Samwise wrote: extern int getReturnCode() { return 4; } still does not compile using the command from above. I may very well be misunderstanding you though. yep. *both* prototype and real declaration should be `extern(C)`. `(C)` part is

Re: Printing a floats in maximum precision

2017-01-17 Thread Basile B. via Digitalmars-d-learn
On Wednesday, 18 January 2017 at 00:09:42 UTC, Nordlöw wrote: What's the easiest way to print a double in maximum precision? %.6g for floats and %.17g for doubles. This is for example what's used on std.json to get a perfect conversion from string to value. the number is the maximum number

[Issue 17087] [REG2.072] Wrong generated with cfloat and creal when casting from int

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17087 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7cf3c764da8b85f9d7054b0895384f3a86ce2684 fix Issue 17087 - [REG2.072] Wrong generated with cfloat and

[Issue 16278] [REG2.067] undefined reference when class template is instantiated only in 'is' expression

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

[Issue 16278] [REG2.067] undefined reference when class template is instantiated only in 'is' expression

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16278 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bdf0df926f90b9243932e2ff76f79de644224b26 Fix issue #16278 - Do not emit TypeInfo for speculative

DMD Refuses to Compile Multiple Source Files

2017-01-17 Thread Samwise via Digitalmars-d-learn
Alright. For the sake of this argument, I'm going to post all the stuff about a really tiny boring program that quite literally does nothing, even though I found this issue when I was working with a much larger project with more functions. Basically I'm getting errors when I attempt to compile

Re: DMD Refuses to Compile Multiple Source Files

2017-01-17 Thread James Buren via Digitalmars-d-learn
Import the source file containing the external function instead of writing that prototype. It should compile then.

Re: Printing a floats in maximum precision

2017-01-17 Thread pineapple via Digitalmars-d-learn
On Wednesday, 18 January 2017 at 00:09:42 UTC, Nordlöw wrote: What's the easiest way to print a double in maximum precision? https://github.com/pineapplemachine/mach.d/blob/master/mach/text/numeric/floats.d#L60 You can also try the formatting directive "%.20f" but unlike the former I can't

[Issue 17087] [REG2.072] Wrong generated with cfloat and creal when casting from int

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

Re: Why not promoting team work?

2017-01-17 Thread solidstate1991 via Digitalmars-d
On Saturday, 14 January 2017 at 02:28:34 UTC, nbro wrote: Hi! I've been following D for at least one year. I like it and I think it's a very good programming language, even though I do not agree with everything it's being done. One thing that has saddened me is seeing a lot of D's users

[Issue 12125] Win64 phobos has hard references to LIBCMT

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12125 --- Comment #7 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/0dc5d1dd68c2bcffb9a501f2e37ff28be3abd87e Merge pull request #1691 from rainers/nodefaultlib

iterating through members of bitfields

2017-01-17 Thread Nestor via Digitalmars-d-learn
Hi, I was just looking at an interesting function from http://codepad.org/lSDTFd7E : void printFields(T)(T args) { auto values = args.tupleof; size_t max; size_t temp; foreach (index, value; values) { temp = T.tupleof[index].stringof.length; if (max < temp) max = temp; }

Re: iterating through members of bitfields

2017-01-17 Thread Ali Çehreli via Digitalmars-d-learn
On 01/17/2017 04:37 PM, Nestor wrote: Hi, I was just looking at an interesting function from http://codepad.org/lSDTFd7E : void printFields(T)(T args) { auto values = args.tupleof; size_t max; size_t temp; foreach (index, value; values) { temp = T.tupleof[index].stringof.length;

Re: Why not promoting team work?

2017-01-17 Thread Satoshi via Digitalmars-d
On Saturday, 14 January 2017 at 03:05:44 UTC, nbro wrote: On Saturday, 14 January 2017 at 02:57:05 UTC, ketmar wrote: On Saturday, 14 January 2017 at 02:28:34 UTC, nbro wrote: How could you do such a thing? freakin' easy: just pay people to do what you want. either that, or people will keep

Re: CTFE Status

2017-01-17 Thread Stefan Koch via Digitalmars-d
On Tuesday, 17 January 2017 at 22:19:39 UTC, Nordlöw wrote: On Tuesday, 17 January 2017 at 22:11:21 UTC, Stefan Koch wrote: Not really, I still use a fallback to the old interpreter for the unimplemented features. Does this mean that the newCTFE branch is usable now? And that I get

[Issue 17066] [REG2.073a] std.regex captures got immutable

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17066 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/4d19d0ad3aab77a9a4a9b2dedaccbacfdeb4e45e Fix issue 17066

Re: Quine using strings?

2017-01-17 Thread Jesse Phillips via Digitalmars-d-learn
On Monday, 16 January 2017 at 13:11:38 UTC, pineapple wrote: On Monday, 16 January 2017 at 09:33:23 UTC, Nestor wrote: PS. Isn't this approach considered "cheating" in quines? ;) I'm afraid so - while the empty program has been technically accepted as being a quine (e.g.

Re: Pry v0.3.1 is out!

2017-01-17 Thread Bastiaan Veelo via Digitalmars-d-announce
On Sunday, 15 January 2017 at 01:26:07 UTC, Dmitry Olshansky wrote: Two key areas of focus are (compared to say Pegged): - performance, on par with hand-written code or die I didn't profile, but apart from the time-complexity that is inherent to straight forward recursive descent parsers like

Where is floating point next{Up,Down}?

2017-01-17 Thread Nordlöw via Digitalmars-d-learn
I can't find nextUp(x) and nextDown(x) described in https://dlang.org/d-floating-point.html Are these D1 only? Is there anything like it in D2/Phobos?

[Issue 16981] [Reg 2.073] assigning class or struct pointers to enum became an error

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16981 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17087] [REG2.072] Wrong generated with cfloat and creal when casting from int

2017-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17087 --- Comment #3 from Walter Bright --- https://github.com/dlang/dmd/pull/6460/ --

Re: Getters/setters generator

2017-01-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/17/17 9:32 AM, Eugene Wissner wrote: Ah, well thanks. I don't think it makes much sense since it would be easier to write a complete setter if the user needs extra checks. Accessors are there only for the generation of the standard methods, that just get or set some object property.

[Issue 17087] [REG2.072] Wrong generated with cfloat and creal when casting from int

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

Re: Thread will get garbage collected?

2017-01-17 Thread ketmar via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 08:58:33 UTC, Arun Chandrasekaran wrote: Interesting. Why doesn't the thread get GC'd in this case even without any reference still active? basically 'cause there is no reliable way to correctly "abort" a thread. nobody knows what is really going on inside it,

Re: Thread will get garbage collected?

2017-01-17 Thread thedeemon via Digitalmars-d-learn
On Monday, 16 January 2017 at 22:08:56 UTC, JN wrote: Am I correctly understanding, that after going out of scope, it's possible for GC to destroy my thread before the file finishes loading? How to prevent GC from destroying my thread before it finishes and make sure the file is loaded

Gtkd how to filter TreeView according to user input

2017-01-17 Thread Erdem via Digitalmars-d-learn
I'd like to filter Treeview data according to user input. How should I do that? When I run this program it gives segmentation fault error. import gtk.Main; import gtk.MainWindow; import gtk.Box; import gtk.Entry; import gtk.EditableIF; import gtk.TreeModelFilter; import gtk.TreeView; import

Re: Thread will get garbage collected?

2017-01-17 Thread Arun Chandrasekaran via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 08:12:50 UTC, ketmar wrote: import core.thread; import core.time; import std.stdio; void threadStarter (string path) { new Thread({ for (;;) { writeln(path); Thread.sleep(1.seconds); } }).start(); } class A { ~this () { import

Re: Getters/setters generator

2017-01-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/17/17 8:26 AM, Eugene Wissner wrote: On Friday, 9 December 2016 at 18:53:55 UTC, Andrei Alexandrescu wrote: Love it, and was toying with similar ideas too. One good extension is to add a predicate to the setter, which guards the assignment. -- Andrei What kind of predicate do you mean?

Better reading list for prospective D programmers

2017-01-17 Thread strymon via Digitalmars-d
I have been around the D community for about a year and I have been enjoying the language - thanks to the creators! I think it would be good to have a reading list outside the D materials. Ali's book is a great introduction but if you want to be a useful D programmer you will need more,

Re: Why not promoting team work?

2017-01-17 Thread strymon via Digitalmars-d
On Tuesday, 17 January 2017 at 12:45:09 UTC, rikki cattermole wrote: Ironically I wrote the only (e)book on CTFE[0]. Its a bit out of date and needs some work, but if you want to give me some feedback please email me and I'll get you a coupon (free). [0] https://leanpub.com/ctfe Thanks,

Re: Better reading list for prospective D programmers

2017-01-17 Thread aberba via Digitalmars-d
On Tuesday, 17 January 2017 at 12:38:43 UTC, strymon wrote: I have been around the D community for about a year and I have been enjoying the language - thanks to the creators! I think it would be good to have a reading list outside the D materials. Ali's book is a great introduction but if you

Re: Why not promoting team work?

2017-01-17 Thread aberba via Digitalmars-d
On Saturday, 14 January 2017 at 03:26:40 UTC, ketmar wrote: On Saturday, 14 January 2017 at 03:05:44 UTC, nbro wrote: On Saturday, 14 January 2017 at 02:57:05 UTC, ketmar wrote: [...] Serious users, to whom I'm directing this post, who really believe in D's potential, should try to

Re: Better reading list for prospective D programmers

2017-01-17 Thread strymon via Digitalmars-d
On Tuesday, 17 January 2017 at 13:10:56 UTC, aberba wrote: I don't know how or when or who will tackle such issues, but you can write a blog series and discuss the stuff you learn as and when you do. Others will surely benefit. I agree that blogging is a good idea, however there is still a

Re: Pry v0.3.1 is out!

2017-01-17 Thread Bastiaan Veelo via Digitalmars-d-announce
On Monday, 16 January 2017 at 22:29:01 UTC, Dmitry Olshansky wrote: I think left-recursion is better handled at the grammar level. What I currently have is parser combinators level where adding this transformation is awkward and too much magic IMO. Handling left-recursion by grammar

Re: Why not promoting team work?

2017-01-17 Thread rikki cattermole via Digitalmars-d
On 18/01/2017 12:38 AM, strymon wrote: On Saturday, 14 January 2017 at 02:28:34 UTC, nbro wrote: Hi! I've been following D for at least one year. I like it and I think it's a very good programming language, even though I do not agree with everything it's being done. One thing that has

Re: CTFE Status

2017-01-17 Thread Martin Nowak via Digitalmars-d
On Tuesday, 17 January 2017 at 06:36:58 UTC, Stefan Koch wrote: real0m1.993s user0m1.872s sys 0m0.120s Just a tip, if you use (maybe install) /bin/time, you also get memory usage. 0.00user 0.00system 0:00.00elapsed 85%CPU (0avgtext+0avgdata 6372maxresident)k 0inputs+0outputs

Re: How can I implement this in D: a variant array of varying function pointer types (diff number of args or types)

2017-01-17 Thread Enjoys Math via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 10:49:14 UTC, Enjoys Math wrote: Z add(Z...)(Z a...) { return a + b; } func[] operatorPool = [!int]; Variant library isn't liking that. Removing & causes another error. Essentially I want a pool of all operators that I define, but these operators can

Re: Why not promoting team work?

2017-01-17 Thread strymon via Digitalmars-d
On Saturday, 14 January 2017 at 02:28:34 UTC, nbro wrote: Hi! I've been following D for at least one year. I like it and I think it's a very good programming language, even though I do not agree with everything it's being done. One thing that has saddened me is seeing a lot of D's users

Re: Voting for std.experimental.checkedint

2017-01-17 Thread Atila Neves via Digitalmars-d
On Monday, 16 January 2017 at 19:51:38 UTC, Jonathan M Davis wrote: On Saturday, January 14, 2017 20:54:11 Jack Stouffer via Digitalmars-d wrote: On Friday, 13 January 2017 at 12:39:38 UTC, Robert burner Schadek wrote: > ... Overall, the code looks good and the design looks solid. However,

Re: Property-based testing

2017-01-17 Thread Atila Neves via Digitalmars-d
On Monday, 16 January 2017 at 14:15:16 UTC, Russel Winder wrote: Is anyone out there doing a property-based testing framework for D? https://github.com/atilaneves/unit-threaded/blob/master/source/unit_threaded/property/package.d Atila

Re: Getters/setters generator

2017-01-17 Thread Mark via Digitalmars-d-announce
On Tuesday, 17 January 2017 at 09:17:56 UTC, Andrei Alexandrescu wrote: On 1/17/17 9:32 AM, Eugene Wissner wrote: Ah, well thanks. I don't think it makes much sense since it would be easier to write a complete setter if the user needs extra checks. Accessors are there only for the generation

Re: Why not promoting team work?

2017-01-17 Thread Chris via Digitalmars-d
On Saturday, 14 January 2017 at 02:28:34 UTC, nbro wrote: Hi! I've been following D for at least one year. I like it and I think it's a very good programming language, even though I do not agree with everything it's being done. One thing that has saddened me is seeing a lot of D's users

How can I implement this in D: a variant array of varying function pointer types (diff number of args or types)

2017-01-17 Thread Enjoys Math via Digitalmars-d-learn
Z add(Z...)(Z a...) { return a + b; } func[] operatorPool = [!int]; Variant library isn't liking that. Removing & causes another error. Essentially I want a pool of all operators that I define, but these operators can be of differing types (which I should be able to

  1   2   >