Re: Quine using strings?

2017-01-16 Thread Nestor via Digitalmars-d-learn
On Monday, 16 January 2017 at 06:41:50 UTC, Basile B. wrote: I remember on Rosetta to have seen this: module quine; import std.stdio; void main(string[] args) { write(import("quine.d")); } compiles with: dmd path/quine.d -Jpath Very good! By the way, module name and arguments aren't

Re: How do we make dub more useful?

2017-01-16 Thread Bauss via Digitalmars-d
On Saturday, 14 January 2017 at 18:14:42 UTC, aberba wrote: On Saturday, 14 January 2017 at 11:02:51 UTC, Joakim wrote: There were two recent posts by a new Rust user about how he's finding that language, that got a lot of attention on their reddit. In the latter post, he mentions D as a

Re: Using Dub

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Sun, 2017-01-15 at 17:44 +, cym13 via Digitalmars-d-learn wrote: > On Sunday, 15 January 2017 at 13:23:25 UTC, Russel Winder wrote: > > Is there any way of setting dub to default to ldc2 rather than  > > dmd as the compiler of use? (I do not want to have to put  > > --compiler ldc2 on every

Re: Why not promoting team work?

2017-01-16 Thread Jerry via Digitalmars-d
On Saturday, 14 January 2017 at 02:28:34 UTC, nbro wrote: These could be a few starting ideas and options. To me it sounds like we need better ways of programmers to connect with eachother and discuss. Maybe a library subforum or something?

[Issue 17091] std.range.zip cannot "save" correctly

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17091 --- Comment #2 from e10s --- It has been fixed. https://github.com/dlang/phobos/pull/4976 --

Re: libgmp deimos library

2017-01-16 Thread Nordlöw via Digitalmars-d
On Sunday, 15 January 2017 at 03:04:30 UTC, Andrew Hall wrote: On Thursday, 12 January 2017 at 16:55:10 UTC, Nordlöw wrote: On Thursday, 12 January 2017 at 09:19:26 UTC, Russel Winder wrote: Is the intention for this to stand with or replace std.bigint ? I have no plan yet. I'm just gonna

Re: std.traits vcs __traits

2017-01-16 Thread Bauss via Digitalmars-d
On Sunday, 15 January 2017 at 12:53:04 UTC, Nordlöw wrote: Why is there both http://dlang.org/phobos/std_traits.html and the builtin https://dlang.org/spec/traits.html ? Should we modify std.traits to make use of __traits? I've noticed measurably faster compilations with __traits instead

Re: Dub, SDL, and Subpackages

2017-01-16 Thread rikki cattermole via Digitalmars-d-learn
On 16/01/2017 11:14 PM, Russel Winder via Digitalmars-d-learn wrote: The Dub manual says that: name "mylib" targetType "none" dependency "mylib:component1" version="*" subPackage { name "component1" targetType "library" sourcePaths "component1/source"

Re: Dub, SDL, and Subpackages

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-01-16 at 23:16 +1300, rikki cattermole via Digitalmars-d- learn wrote: > […] > Change targetType to "library" and it should work. > It doesn't auto infer that it should be library since you have > overriden  > that ability of it. That isn't going to work because it then tries to

Re: How do we make dub more useful?

2017-01-16 Thread cym13 via Digitalmars-d
On Saturday, 14 January 2017 at 11:02:51 UTC, Joakim wrote: There were two recent posts by a new Rust user about how he's finding that language, that got a lot of attention on their reddit. In the latter post, he mentions D as a competitor: http://esr.ibiblio.org/?p=7303 Worth reading

[Issue 17091] std.range.zip cannot "save" correctly

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17091 Kazuki Komatsu changed: What|Removed |Added Severity|critical|normal --

Re: std.traits vcs __traits

2017-01-16 Thread Nordlöw via Digitalmars-d
On Monday, 16 January 2017 at 09:09:34 UTC, Bauss wrote: I thought it already did that. I hope this can be a thing so std.traits actually makes use of what's build-in, rather than attemtping to apply the same logic that arleady exist elsewhere. That's exactly my plan.

Re: CMake support for D

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-01-16 at 11:40 +, King_DuckZ via Digitalmars-d-learn wrote: > On Sunday, 3 January 2016 at 17:30:15 UTC, Dibyendu Majumdar  > wrote: > > Does CMake recognise D in the enable_language command? > > > > If not is there a workaround? > > > > Thanks and Regards > > Dibyendu > > One

Dub and cleaning

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
Is it really the case that Dub does not have a way of cleaning up all the stuff it creates? I tried "dub clean" and it doesn't clean. -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip:

Re: Using Dub

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-01-16 at 10:47 +, cym13 via Digitalmars-d-learn wrote: > On Monday, 16 January 2017 at 09:42:03 UTC, Russel Winder wrote: > > On Sun, 2017-01-15 at 17:44 +, cym13 via  > > Digitalmars-d-learn wrote: > > > On Sunday, 15 January 2017 at 13:23:25 UTC, Russel Winder  > > > wrote:

Re: What about an identifier that is an mixin

2017-01-16 Thread ag0aep6g via Digitalmars-d
On 01/16/2017 08:52 AM, Bauss wrote: On Friday, 13 January 2017 at 21:32:49 UTC, Daniel Kozák wrote: [...] there is no difference between template and mixin template That's not true. Templates do not carry context with them, they only have their own scope available. Where as mixin

Re: std.traits vcs __traits

2017-01-16 Thread Bauss via Digitalmars-d
On Monday, 16 January 2017 at 11:20:16 UTC, Nordlöw wrote: On Monday, 16 January 2017 at 09:09:34 UTC, Bauss wrote: I thought it already did that. I hope this can be a thing so std.traits actually makes use of what's build-in, rather than attemtping to apply the same logic that arleady exist

Re: parent class get the subclass object

2017-01-16 Thread rikki cattermole via Digitalmars-d
On 17/01/2017 1:15 AM, Brian wrote: Dlang should support such coding. What should I do? import std.stdio : writeln; abstract class Base(T) { this() { _this = this; } void hello() { _this.world(); } private { T _this; } } class Sub

Re: SmartRef: The Smart Pointer In D

2017-01-16 Thread biozic via Digitalmars-d-announce
On Monday, 16 January 2017 at 01:54:35 UTC, Dsby wrote: On Sunday, 15 January 2017 at 17:24:25 UTC, biozic wrote: On Sunday, 15 January 2017 at 15:56:30 UTC, Dsby wrote: and : In https://github.com/dlang/phobos/blob/master/std/typecons.d#L147 ~this() { debug(Unique)

Dub, SDL, and Subpackages

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
The Dub manual says that: name "mylib" targetType "none" dependency "mylib:component1" version="*" subPackage { name "component1" targetType "library" sourcePaths "component1/source" importPaths "component1/source" } is reasonable. However whenever I try

[Issue 11373] flock from missing in linux-specific imports

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11373 Nemanja Boric <4bur...@gmail.com> changed: What|Removed |Added Status|NEW |RESOLVED

Re: std.traits vcs __traits

2017-01-16 Thread Stefan Koch via Digitalmars-d
On Sunday, 15 January 2017 at 12:53:04 UTC, Nordlöw wrote: Why is there both http://dlang.org/phobos/std_traits.html and the builtin https://dlang.org/spec/traits.html ? Should we modify std.traits to make use of __traits? I've noticed measurably faster compilations with __traits instead

[Issue 17080] Can assign member-function-ptr to free-function-ptr

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17080 --- Comment #9 from Dicebot --- (In reply to Sprink from comment #8) > Why bother fixing this issue by just changing the type to a delegate? You > are just making a temporary fix that has the potential to break code out > there.

[Issue 17091] std.range.zip cannot "save" correctly

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17091 Kazuki Komatsu changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8465] std.file cannot set file attributes

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8465 Jakub Łabaj changed: What|Removed |Added Status|NEW |RESOLVED

Re: Using Dub

2017-01-16 Thread cym13 via Digitalmars-d-learn
On Monday, 16 January 2017 at 09:42:03 UTC, Russel Winder wrote: On Sun, 2017-01-15 at 17:44 +, cym13 via Digitalmars-d-learn wrote: On Sunday, 15 January 2017 at 13:23:25 UTC, Russel Winder wrote: > Is there any way of setting dub to default to ldc2 rather > than dmd as the compiler of

emplacing extern(C++) class

2017-01-16 Thread drug via Digitalmars-d-learn
I'm interfacing to C++ I using emplacing extern(C++) to malloc'ed memory like http://wiki.dlang.org/Memory_Management (see Explicit Class Instance Allocation) This code segfaulted with extern(C++) TestClass. I guess it's because extern(C++) class aren't rooted from Object so instead of

parent class get the subclass object

2017-01-16 Thread Brian via Digitalmars-d
Dlang should support such coding. What should I do? import std.stdio : writeln; abstract class Base(T) { this() { _this = this; } void hello() { _this.world(); } private { T _this; } } class Sub : Base!Sub { void world() {

Re: How do we make dub more useful?

2017-01-16 Thread Mike Parker via Digitalmars-d
On Saturday, 14 January 2017 at 18:14:42 UTC, aberba wrote: On Saturday, 14 January 2017 at 11:02:51 UTC, Joakim wrote: There were two recent posts by a new Rust user about how he's finding that language, that got a lot of attention on their reddit. In the latter post, he mentions D as a

[Github] Have you ever heard of prhero ?

2017-01-16 Thread Basile B. via Digitalmars-d
Read this: https://www.reddit.com/r/github/comments/5ob0nl/no_thanks_prhero_you_suck_with_your_heart/

Property-based testing

2017-01-16 Thread Russel Winder via Digitalmars-d
Is anyone out there doing a property-based testing framework for D? -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp:

Re: std.traits vcs __traits

2017-01-16 Thread Bauss via Digitalmars-d
On Monday, 16 January 2017 at 11:54:23 UTC, Stefan Koch wrote: On Sunday, 15 January 2017 at 12:53:04 UTC, Nordlöw wrote: Why is there both http://dlang.org/phobos/std_traits.html and the builtin https://dlang.org/spec/traits.html ? Should we modify std.traits to make use of __traits? I've

[Issue 17096] many traits accept an invalid parameter count without error

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

Re: Quine using strings?

2017-01-16 Thread pineapple via Digitalmars-d-learn
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. http://www.ioccc.org/1994/smr.hint) programs which use file io to read their own

[Issue 17080] Can assign member-function-ptr to free-function-ptr

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17080 --- Comment #10 from Sprink --- (In reply to Dicebot from comment #9) > Because I disagree with your proposed fix and overall judgement of the > problem but don't want to argue about it in context of this issue. In what

Re: [Github] Have you ever heard of prhero ?

2017-01-16 Thread Basile B. via Digitalmars-d
On Monday, 16 January 2017 at 14:14:43 UTC, Basile B. wrote: Read this: https://www.reddit.com/r/github/comments/5ob0nl/no_thanks_prhero_you_suck_with_your_heart/ for example dmd is monitored by the bot.

Changing template parameters

2017-01-16 Thread Dlearner via Digitalmars-d-learn
Hey, quick question! I'm messing around with std.random and noticed that you can change the boundaries parameter to be either open or closed intervals on either side. By default it is "[)". How do I change these template parameters?

[Issue 17097] New: std.net.curl.FTP struct not covered

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17097 Issue ID: 17097 Summary: std.net.curl.FTP struct not covered Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority:

[Issue 8465] std.file cannot set file attributes

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8465 --- Comment #2 from Andrei Alexandrescu --- @Jakub thx! --

Re: Property-based testing

2017-01-16 Thread Mark 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? There have been several attempts to implement such a framework, e.g. [1]. If you run a search for "quickcheck" in the forums, you'll probably find them all.

[Issue 12847] iota.cycle with 64-bit step causes ICE in comsub

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

[Issue 10170] __traits(compiles,b.x)) incorrectly allows to access private members

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

Re: Parsing a UTF-16LE file line by line, BUG?

2017-01-16 Thread Era Scarecrow via Digitalmars-d-learn
On Sunday, 15 January 2017 at 19:48:04 UTC, Nestor wrote: I see. So correcting my original doubt: How could I parse an UTF16LE file line by line (producing a proper string in each iteration) without loading the entire file into memory? Could... roll your own? Although if you wanted it to be

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

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17098 Issue ID: 17098 Summary: this programworked on DMD 2072.2, not it does not compile dmd 2073 any betas Product: D Version: D2 Hardware: All OS: Windows

[Issue 17099] New: c:\d\dmd2\samples\d needs to be updated to compile with latest versions like 2073...

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17099 Issue ID: 17099 Summary: c:\d\dmd2\samples\d needs to be updated to compile with latest versions like 2073... Product: D Version: D2 Hardware: x86_64 OS: Windows

Re: Changing template parameters

2017-01-16 Thread Jack Stouffer via Digitalmars-d-learn
On Monday, 16 January 2017 at 15:32:33 UTC, Dlearner wrote: Hey, quick question! I'm messing around with std.random and noticed that you can change the boundaries parameter to be either open or closed intervals on either side. By default it is "[)". How do I change these template

Re: Using Dub

2017-01-16 Thread Dejan Lekic via Digitalmars-d-learn
On Monday, 16 January 2017 at 09:40:55 UTC, Russel Winder wrote: On the one hand Cargo works wonderfully with Rust so I had hoped Dub would work wonderfully with D. Sadly I am finding it doesn't. Possibly my fault, but still annoying. Cargo does not have multiple Rust compilers as an option.

Re: Changing template parameters

2017-01-16 Thread Rene Zwanenburg via Digitalmars-d-learn
On Monday, 16 January 2017 at 15:56:16 UTC, Jack Stouffer wrote: Same way you use any template parameters, auto i = uniform!("(]")(0, 1000); Also, if the template parameter consists of a single token you can omit the parens: auto i = uniform!"(]"(0, 1000);

Re: CMake support for D

2017-01-16 Thread King_DuckZ via Digitalmars-d-learn
On Monday, 16 January 2017 at 12:29:46 UTC, Russel Winder wrote: On Mon, 2017-01-16 at 11:40 +, King_DuckZ via Digitalmars-d-learn wrote: On Sunday, 3 January 2016 at 17:30:15 UTC, Dibyendu Majumdar wrote: > Does CMake recognise D in the enable_language command? > > If not is there a

Re: Is it ok to inherit multiple times same templated interface?

2017-01-16 Thread Meta via Digitalmars-d-learn
On Sunday, 15 January 2017 at 23:25:25 UTC, Ryan wrote: How would overloading work? Overload resolution works based on function/method parameters, not return types. In the example you gave the 3 get functions are indistinguishable. If the template parameter was used for a method parameter

Namespaces like C++

2017-01-16 Thread Andrey via Digitalmars-d-learn
Hello, can I using namespaces like in C++, for example: ui::Widget or ui::Manager? I created ui/widget.d and ui/manager.d for implementation classes Widget and Manager, bun I can't import their correctly for using ui.Manager uiManager; If it is impossible, then what is the best way to using

Re: Changing template parameters

2017-01-16 Thread Dlearner via Digitalmars-d-learn
On Monday, 16 January 2017 at 16:08:07 UTC, Rene Zwanenburg wrote: On Monday, 16 January 2017 at 15:56:16 UTC, Jack Stouffer wrote: Same way you use any template parameters, auto i = uniform!("(]")(0, 1000); Also, if the template parameter consists of a single token you can omit the

Re: Namespaces like C++

2017-01-16 Thread rjframe via Digitalmars-d-learn
On Mon, 16 Jan 2017 18:02:09 +, Andrey wrote: > Hello, can I using namespaces like in C++, for example: ui::Widget or > ui::Manager? I created ui/widget.d and ui/manager.d for implementation > classes Widget and Manager, bun I can't import their correctly for using > ui.Manager uiManager; >

Re: Getters/setters generator

2017-01-16 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 17 January 2017 at 06:26:35 UTC, 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

Re: Getters/setters generator

2017-01-16 Thread Eugene Wissner via Digitalmars-d-announce
On Tuesday, 17 January 2017 at 07:06:05 UTC, Stefan Koch wrote: On Tuesday, 17 January 2017 at 06:26:35 UTC, 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

Re: version identifier hygiene

2017-01-16 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-01-16 21:04, Ali Çehreli wrote: It is plausible to compile and link the sources of multiple packages on the same command line at the same. (I'm not sure whether this is required for e.g. LLVM's link-time optimization (LTO) but I think it helps the compiler as well.) The trouble is, the

[Issue 17100] New: http://dlang.org/dmd-osx.html doc out of date; could that be autogenerated?

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17100 Issue ID: 17100 Summary: http://dlang.org/dmd-osx.html doc out of date; could that be autogenerated? Product: D Version: D2 Hardware: x86 OS: Mac OS X

Re: parent class get the subclass object

2017-01-16 Thread Brian via Digitalmars-d
On Monday, 16 January 2017 at 19:31:50 UTC, Mike Parker wrote: On Monday, 16 January 2017 at 16:31:41 UTC, Brian wrote: No, you don't understand I want to express meaning. other programing language is allow this. Your code more like the old C++. If a high-level programing language or need

Chain a range of ranges?

2017-01-16 Thread Yuxuan Shui via Digitalmars-d-learn
The built in chain seems to only be able to chain a fixed number of ranges, is there a way to chain a range/array of ranges?

feature request: `dmd -v=json` to avoid custom parsing of -v

2017-01-16 Thread Timothee Cour via Digitalmars-d
Would it make sense to have `dmd -v=json` to avoid custom parsing of -v ? benefit: * avoid having to maintain parsers for -v output (eg used in rdmd) * current parser not forward/backward compatible with different dmd releases (eg each time something is added, it can break the parser, eg 2.073

[Issue 17102] New: std.write.file generates a segmentation fault when the file name is a string with a default value

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17102 Issue ID: 17102 Summary: std.write.file generates a segmentation fault when the file name is a string with a default value Product: D Version: D2 Hardware: x86

Re: Chain a range of ranges?

2017-01-16 Thread Brad Anderson via Digitalmars-d-learn
On Tuesday, 17 January 2017 at 03:21:39 UTC, Yuxuan Shui wrote: The built in chain seems to only be able to chain a fixed number of ranges, is there a way to chain a range/array of ranges? See std.algorithm.iteration.joiner

Re: Getters/setters generator

2017-01-16 Thread Eugene Wissner via Digitalmars-d-announce
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? Can you give an example please?

[Issue 17100] manpages and http://dlang.org/dmd-osx.html doc out of date; could that be autogenerated?

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17100 Timothee Cour changed: What|Removed |Added Summary|http://dlang.org/dmd-osx.ht |manpages and

[Issue 17100] http://dlang.org/dmd-osx.html doc out of date; could that be autogenerated?

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17100 Timothee Cour changed: What|Removed |Added CC|

Re: parent class get the subclass object

2017-01-16 Thread Dsby via Digitalmars-d
On Monday, 16 January 2017 at 19:31:50 UTC, Mike Parker wrote: On Monday, 16 January 2017 at 16:31:41 UTC, Brian wrote: No, you don't understand I want to express meaning. other programing language is allow this. Your code more like the old C++. If a high-level programing language or need

Re: Getters/setters generator

2017-01-16 Thread Eugene Wissner via Digitalmars-d-announce
On Friday, 9 December 2016 at 10:27:05 UTC, Eugene Wissner wrote: Hello, we've just open sourced a small module ("accessors") that helps to generate getters and setters automatically: https://github.com/funkwerk/accessors http://code.dlang.org/packages/accessors It takes advantage of the

Re: parent class get the subclass object

2017-01-16 Thread Brian via Digitalmars-d
On Monday, 16 January 2017 at 16:47:09 UTC, Nemanja Boric wrote: On Monday, 16 January 2017 at 16:31:41 UTC, Brian wrote: [...] You're missing a cast, since `this` is a reference to a superclass. import std.stdio : writeln; abstract class Base(T) { this() { _this =

Re: CTFE Status

2017-01-16 Thread Stefan Koch via Digitalmars-d
On Monday, 16 January 2017 at 16:31:25 UTC, Stefan Koch wrote: On Thursday, 5 January 2017 at 06:04:00 UTC, Stefan Koch wrote: On Monday, 2 January 2017 at 18:40:44 UTC, Stefan Koch wrote: So guys. basic function-calls are supported. Hell YEAH! Disabled for now. Since it pushes some

[Issue 17101] New: -Dd should be upgraded to new style -Dd= (ditto -Df)

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17101 Issue ID: 17101 Summary: -Dd should be upgraded to new style -Dd= (ditto -Df) Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW

[Issue 17101] -Dd should be upgraded to new style -Dd= (ditto -Df)

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17101 Timothee Cour changed: What|Removed |Added CC|

[Issue 17103] New: doc: -mv== not mentioned in release notes; + vague doc

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17103 Issue ID: 17103 Summary: doc: -mv== not mentioned in release notes; + vague doc Product: D Version: D2 Hardware: x86 OS: All Status: NEW

[Issue 17088] Access Violation on membership test with shared AA

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17088 m.bier...@lostmoment.com changed: What|Removed |Added CC||m.bier...@lostmoment.com --

Re: parent class get the subclass object

2017-01-16 Thread Mike Parker via Digitalmars-d
On Monday, 16 January 2017 at 16:31:41 UTC, Brian wrote: No, you don't understand I want to express meaning. other programing language is allow this. Your code more like the old C++. If a high-level programing language or need haevy like C++ impl code, It's very regret. Can like rust /

Re: Using Dub

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-01-16 at 16:47 +, cym13 via Digitalmars-d-learn wrote: > […] > > What do you mean it failed? I did that on another computer to  > test and it works flawlessly for me. > > […] trying a settings.sdl file failed setting.json works. -- Russel.

version identifier hygiene

2017-01-16 Thread Ali Çehreli via Digitalmars-d-learn
It is plausible to compile and link the sources of multiple packages on the same command line at the same. (I'm not sure whether this is required for e.g. LLVM's link-time optimization (LTO) but I think it helps the compiler as well.) The trouble is, the version identifiers used by one

Re: CTFE Status

2017-01-16 Thread Nordlöw via Digitalmars-d
On Monday, 16 January 2017 at 16:31:25 UTC, Stefan Koch wrote: Basic Function call support reenabled. Phobos unittests pass. Nice!

Re: std.traits vcs __traits

2017-01-16 Thread Jonathan M Davis via Digitalmars-d
On Monday, January 16, 2017 11:54:23 Stefan Koch via Digitalmars-d wrote: > On Sunday, 15 January 2017 at 12:53:04 UTC, Nordlöw wrote: > > Why is there both > > > > http://dlang.org/phobos/std_traits.html > > > > and the builtin > > > > https://dlang.org/spec/traits.html > > > > ? > > > > Should

Re: Using Dub

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-01-16 at 16:51 +, cym13 via Digitalmars-d-learn wrote: > […] > Oh, maybe you're on windows, in which case the settings.json file  > must be placed in either $ProgramData\dub or in $APPDATA\dub.  > Relevant lines of dub.d:  >

Re: Referring to array element by descriptive name

2017-01-16 Thread albert-j via Digitalmars-d-learn
Thank you for all your answers. I was concerned because I'm dealing with a small function that is called many times and where the bulk of the calculations in the simulation takes place. So even 5% performance difference would be significant for me. But it is good to know that compilers are

Re: Namespaces like C++

2017-01-16 Thread Mike Parker via Digitalmars-d-learn
On Monday, 16 January 2017 at 18:02:09 UTC, Andrey wrote: Hello, can I using namespaces like in C++, for example: ui::Widget or ui::Manager? I created ui/widget.d and ui/manager.d for implementation classes Widget and Manager, bun I can't import their correctly for using ui.Manager uiManager;

Re: Namespaces like C++

2017-01-16 Thread Andrey via Digitalmars-d-learn
On Monday, 16 January 2017 at 19:17:57 UTC, Mike Parker wrote: D namespaces generally follow the format [package names].moduleName.Type. So to have ui.Manager, then either the module, not the package, needs to be named 'ui', or you need to do the following: // file ui/package.d module ui;

Re: Voting for std.experimental.checkedint

2017-01-16 Thread Jonathan M Davis via Digitalmars-d
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, > I have no personal use for such a module, so I can't really

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

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8471 Jakub Łabaj changed: What|Removed |Added CC||uaaabbj...@gmail.com ---

Re: Pry v0.3.1 is out!

2017-01-16 Thread Dmitry Olshansky via Digitalmars-d-announce
On 1/16/17 1:29 AM, Bastiaan Veelo wrote: On Sunday, 15 January 2017 at 01:26:07 UTC, Dmitry Olshansky wrote: Pry is a new pragmatic parser combinators library. https://github.com/DmitryOlshansky/pry Interesting. How about left-recursion? (I added support for left-recursive grammars to

[Issue 16697] Extend IsExpression to accept __vector as a TypeSpecialization

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

Re: [Github] Have you ever heard of prhero ?

2017-01-16 Thread Chris Wright via Digitalmars-d
On Mon, 16 Jan 2017 14:14:43 +, Basile B. wrote: > Read this: > https://www.reddit.com/r/github/comments/5ob0nl/ no_thanks_prhero_you_suck_with_your_heart/ This would have been the perfect place for you to insert a short description of what's happening. There is an account on github that

Re: How do we make dub more useful?

2017-01-16 Thread Chris Wright via Digitalmars-d
On Mon, 16 Jan 2017 13:20:45 +, Mike Parker wrote: > On Saturday, 14 January 2017 at 18:14:42 UTC, aberba wrote: >> On Saturday, 14 January 2017 at 11:02:51 UTC, Joakim wrote: >>> There were two recent posts by a new Rust user about how he's finding >>> that language, that got a lot of

Re: Android LDC in a Container

2017-01-16 Thread Xavier Bigand via Digitalmars-d-announce
Le 15/01/2017 à 18:40, Andre Pany a écrit : Hi, on Dockerhub I published a repository which makes it really easy to develop Android applications using LDC and Joakims work. The repository contains Android 1.1.0 beta from https://github.com/joakim-noah/android/releases and also the NDK from

[Issue 14238] DIP25: escape checks can be circumvented with delegate

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14238 --- Comment #6 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7c3e47a20e30672653c6330edbe22f2181a1f9c2 fix Issue 14238 - DIP25: escape checks can be circumvented

[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a7597df60ed7f78988e875d25b6d48b48189cc33 Fix issue 16705 - TaskPool.reduce fails to compile

[Issue 16691] New debug experience: hovering over a string function argument doesn't display the string

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16691 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/931dad8d353824b9cd9ffc3b0411a544887bff1b Fix issue 16691: make value parameters implicitely passed by

[Issue 16678] [REG] Fix for issue 16193 creates major breakage

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16678 --- Comment #7 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/8c00c7ea978dad3236148ea6fa57a1a9f8af3186 Merge pull request #6251 from Dicebot/revert-regressions --

[Issue 16048] std.getopt: duplicated options are not detected

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16048 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/43880932f56f412eb5c3e4fcc395c507c1aa93ad Throw error on duplicate long/short options --

[Issue 8838] Slicing static arrays should be considered unsafe (@system)

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

[Issue 16102] [REG2.070] struct dtor replace value on stack

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16102 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/6bff4520cc77b682948db87026bfcea1cf150cb2 add test case for issue 16102

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

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

[Issue 16611] std.traits.fullyQualifiedName fails with error 'Unrecognized type const(void)'

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16611 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a636bb6bb00e54fda367bd3c452db2ced0ca9df6 Fix Issue 16611 - 'Unrecognized type const(void)'

[Issue 16582] [REG2.072.0-b1] ParamterDefaultValueTuple fails to compile for scope paramters

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16582 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f783d975a28febea3a323bae3ce5f902cec17aa9 fix Issue 16582 - ParameterDefaults fails w/ scope

[Issue 16627] [Reg 2.072] non-static structs with postblit/dtor fields are now nested

2017-01-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16627 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/868ce84e30a3d4e1157e9e72bc3e308b0cd0b1db fix Issue 16627 - non-static structs with postblit/dtor

  1   2   3   >