Re: Proposal : aggregated dlang git repository

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 14:32:59 +, weaselcat wrote: I see it as quite a shame that people repeatedly say they actively avoid using classes in D in favor of structs where possible, until forced to use classes. it has nothing with GC per se, i just don't like the concept. not epsecially D

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/11/15 8:38 AM, Vladimir Panteleev wrote: No. To clarify, the new repo is not a replacement of the existing ones. It is an additional meta-repository, which, when cloned with --recursive, gets all the other ones. I see, thanks. So the change is not that dramatic. Nice! What would be the

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/11/15 8:51 AM, Dicebot wrote: [snip] Thanks. I just asked a few more before reading this. -- Andrei

[Issue 11792] Investigate migrating to a meta repo

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11792 --- Comment #8 from Dicebot pub...@dicebot.lv --- I am of very bad opinion of subtree approach (single physical repo). It would destroy natural separation of areas of interest for pull request reviewers (need to add dmd/phobos labels manually for

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 16:57:35 UTC, Andrei Alexandrescu wrote: What would be the nomenclature? Right now we have https://github.com/D-Programming-Language with individual projects. Is it possible for D-Programming-Language to be its own meta-repository so you clone

Re: DDocs.org: auto-generated documentation for all DUB projects (WIP)

2015-02-11 Thread John Colvin via Digitalmars-d-announce
On Tuesday, 10 February 2015 at 22:40:18 UTC, Kiith-Sa wrote: DDocs.org (http://ddocs.org) is a repository of documentation for DUB projects that automatically re-generates docs as new projects/releases/branch changes are added. The idea is to make documenting D projects as simple as

[Issue 11792] Investigate migrating to a meta repo

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11792 --- Comment #7 from Vladimir Panteleev thecybersha...@gmail.com --- On the forum, I posted ([1]): I would like to add that, however, it might be worth considering moving everything to a single repository at the same time as the switch to DDMD.

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Dicebot via Digitalmars-d
On Wednesday, 11 February 2015 at 16:37:29 UTC, Andrei Alexandrescu wrote: On 2/11/15 8:30 AM, Vladimir Panteleev wrote: On Wednesday, 11 February 2015 at 16:16:41 UTC, Andrei Alexandrescu wrote: * What's going to happen with the commit history for our current projects? * How about the pull

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/11/15 8:51 AM, Dicebot wrote: In the long term I'd like to move makefile targets that make assumptions about external repos (like dlang.org phobos docs generation) into aggregated repos - but even that is optional and will happen only if no one objects. One thing that'd be good is an

Re: std.allocator ready for some abuse

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/11/15 4:55 AM, ANtlord wrote: On Monday, 17 February 2014 at 15:49:27 UTC, Andrei Alexandrescu wrote: On 2/17/14, 5:55 AM, Dicebot wrote: Andrei, what is current state of std.allocator? I am asking this in context of recent Walter Phobos proposal (ScopeBuffer) to evaluate how feasible is

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/11/15 5:48 AM, Dicebot wrote: There seems to be a weird miscommunication here. I have asked your opinion about this specific proposal - does it seem useful to you, would you be willing to endorse it as official starting point for D development etc. Problem is I don't know. That's why I

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 16:16:41 UTC, Andrei Alexandrescu wrote: * What's going to happen with the commit history for our current projects? * How about the pull requests history? If you have to ask this question, there's clearly a big communication gap. This is not an overhaul of

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 16:30:21 UTC, Vladimir Panteleev wrote: On Wednesday, 11 February 2015 at 16:16:41 UTC, Andrei Alexandrescu wrote: * What's going to happen with the commit history for our current projects? * How about the pull requests history? If you have to ask this

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 16:37:29 UTC, Andrei Alexandrescu wrote: On 2/11/15 8:30 AM, Vladimir Panteleev wrote: On Wednesday, 11 February 2015 at 16:16:41 UTC, Andrei Alexandrescu wrote: * What's going to happen with the commit history for our current projects? * How about the pull

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/11/15 8:30 AM, Vladimir Panteleev wrote: On Wednesday, 11 February 2015 at 16:16:41 UTC, Andrei Alexandrescu wrote: * What's going to happen with the commit history for our current projects? * How about the pull requests history? If you have to ask this question, there's clearly a big

Re: This Week in D: Issue #4

2015-02-11 Thread weaselcat via Digitalmars-d-announce
On Wednesday, 11 February 2015 at 14:32:46 UTC, Adam D. Ruppe wrote: On Wednesday, 11 February 2015 at 11:21:46 UTC, Dominikus Dittes Scherkl wrote: Did I missed issue #5 ? No, I did; I was sick most of last week and decided to skip it, just going to bed instead on sunday night. Hope you

Re: DDocs.org: auto-generated documentation for all DUB projects (WIP)

2015-02-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-02-10 23:40, Kiith-Sa wrote: DDocs.org (http://ddocs.org) is a repository of documentation for DUB projects that automatically re-generates docs as new projects/releases/branch changes are added. This is awesome :) -- /Jacob Carlborg

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-02-11 17:51, Dicebot wrote: Small added effort for release manager to update submodules in meta-repo upon new releases. Can't really imagine anything else right now. You're thinking the meta repository is only update on each release? Or would an automated approach be a good idea?

Re: std.allocator ready for some abuse

2015-02-11 Thread MrSmith via Digitalmars-d
On Wednesday, 11 February 2015 at 15:57:26 UTC, John Colvin wrote: Should it be in std.experimental? Or at least on code.dlang.org? Yeah, dub package would be really nice!

Re: This Week in D: Issue #4

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 2/11/15 6:32 AM, Adam D. Ruppe wrote: On Wednesday, 11 February 2015 at 11:21:46 UTC, Dominikus Dittes Scherkl wrote: Did I missed issue #5 ? No, I did; I was sick most of last week and decided to skip it, just going to bed instead on sunday night. I have since learned you're doing

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Dicebot via Digitalmars-d
On Wednesday, 11 February 2015 at 16:16:41 UTC, Andrei Alexandrescu wrote: On 2/11/15 5:48 AM, Dicebot wrote: There seems to be a weird miscommunication here. I have asked your opinion about this specific proposal - does it seem useful to you, would you be willing to endorse it as official

[Issue 11792] Investigate migrating to a meta repo

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11792 --- Comment #9 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Dicebot from comment #8) It would destroy natural separation of areas of interest for pull request reviewers (need to add dmd/phobos labels manually for each PR), It

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Dicebot via Digitalmars-d
On Wednesday, 11 February 2015 at 18:05:56 UTC, Andrei Alexandrescu wrote: What does update mean in this context? I was expecting the projects to be more or less up to date. -- Andrei $ git clone --recursive g...@github.com:D-Programming-Language/dlang This will clone all submodules set to

Re: Const-correctness and uniqueness. Again.

2015-02-11 Thread deadalnix via Digitalmars-d
On Wednesday, 11 February 2015 at 18:37:42 UTC, deadalnix wrote: On Wednesday, 11 February 2015 at 13:54:12 UTC, Dicebot wrote: On Monday, 9 February 2015 at 23:40:31 UTC, deadalnix wrote: Someone is starting to see where I'm getting at when I'm pushing for owned... I don't think this

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Dicebot via Digitalmars-d
On Wednesday, 11 February 2015 at 18:23:23 UTC, H. S. Teoh wrote: I thought somebody mentioned that the latest version of git submodules now allows tracking branch heads instead of specific commits? And I have replied several times already that it doesn't work the way those people expect it

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 18:23:23 UTC, H. S. Teoh wrote: I thought somebody mentioned that the latest version of git submodules now allows tracking branch heads instead of specific commits? Yeah, it turns out it doesn't work quite like you'd expect. They still track specific

Re: Inconsistent coding style in code examples

2015-02-11 Thread H. S. Teoh via Digitalmars-d
On Tue, Feb 10, 2015 at 02:25:01PM -0800, H. S. Teoh via Digitalmars-d wrote: [...] That leaves the mechanical solution, which is actually very easy. It doesn't have to be a sophisticated solution involving a full-blown D lexer. It could be as simple as substituting initial runs of spaces on

Re: Ncurses deprecated ~master issue

2015-02-11 Thread Paul via Digitalmars-d-learn
On Tuesday, 10 February 2015 at 23:39:56 UTC, Adam D. Ruppe wrote: On Tuesday, 10 February 2015 at 21:11:14 UTC, Paul wrote: Yes, I noted the default values, even if I don't understand what they do at present(!). They allow overriding of the input/output files. fdIn normally refers to

Re: DDocs.org: auto-generated documentation for all DUB projects (WIP)

2015-02-11 Thread Andrej Mitrovic via Digitalmars-d-announce
On 2/11/15, Jacob Carlborg via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 2015-02-10 23:40, Kiith-Sa wrote: DDocs.org (http://ddocs.org) is a repository of documentation for DUB projects that automatically re-generates docs as new projects/releases/branch changes are

Re: Inconsistent coding style in code examples

2015-02-11 Thread H. S. Teoh via Digitalmars-d
On Wed, Feb 11, 2015 at 06:32:27PM +, Vladimir Panteleev via Digitalmars-d wrote: On Wednesday, 11 February 2015 at 18:30:13 UTC, H. S. Teoh wrote: but the fact that (1) I don't even have kindlegen, It's a free download. Not FOSS though, binary blob. But what's the use if I don't have

[Issue 14134] Free of large array does not work

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14134 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment #9 from

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/11/15 9:52 AM, Dicebot wrote: On Wednesday, 11 February 2015 at 17:23:36 UTC, Jacob Carlborg wrote: On 2015-02-11 17:51, Dicebot wrote: Small added effort for release manager to update submodules in meta-repo upon new releases. Can't really imagine anything else right now. You're

[Issue 14134] Free of large array does not work

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14134 --- Comment #10 from Martin Nowak c...@dawg.eu --- I think the right semantic is to destroy+free the complete array iff it's GC managed. --

Re: Inconsistent coding style in code examples

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 18:30:13 UTC, H. S. Teoh wrote: but the fact that (1) I don't even have kindlegen, It's a free download. Not FOSS though, binary blob. and (2) I don't have a Windows machine to test changes to win32.mak, I think you can run DM make under Wine.

Re: DDocs.org: auto-generated documentation for all DUB projects (WIP)

2015-02-11 Thread extrawurst via Digitalmars-d-announce
On Tuesday, 10 February 2015 at 22:40:18 UTC, Kiith-Sa wrote: DDocs.org (http://ddocs.org) is a repository of documentation for DUB projects that automatically re-generates docs as new projects/releases/branch changes are added. This is huge! Great work

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 17:23:36 UTC, Jacob Carlborg wrote: On 2015-02-11 17:51, Dicebot wrote: Small added effort for release manager to update submodules in meta-repo upon new releases. Can't really imagine anything else right now. You're thinking the meta repository is only

[Issue 11792] Investigate migrating to a meta repo

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11792 --- Comment #10 from Dicebot pub...@dicebot.lv --- It is easy in git to see the log of a specific directory, git log phobos or gitk phobos I was referring to following on GitHub, not exploring plain git history. For example I am currently

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread H. S. Teoh via Digitalmars-d
On Wed, Feb 11, 2015 at 06:17:35PM +, Dicebot via Digitalmars-d wrote: On Wednesday, 11 February 2015 at 18:05:56 UTC, Andrei Alexandrescu wrote: What does update mean in this context? I was expecting the projects to be more or less up to date. -- Andrei $ git clone --recursive

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread H. S. Teoh via Digitalmars-d
On Wed, Feb 11, 2015 at 06:27:44PM +, Vladimir Panteleev via Digitalmars-d wrote: On Wednesday, 11 February 2015 at 18:23:23 UTC, H. S. Teoh wrote: I thought somebody mentioned that the latest version of git submodules now allows tracking branch heads instead of specific commits? Yeah,

Comparing function pointers

2015-02-11 Thread Freddy via Digitalmars-d-learn
import std.stdio; auto test1(){ void testFunc(){ } return testFunc; } auto test2(){ uint a; void testFunc(){ a=1; } return testFunc; } void main(){ writeln(test1()==test1());//true

Re: DlangIDE

2015-02-11 Thread Vadim Lopatin via Digitalmars-d-announce
On Wednesday, 11 February 2015 at 13:40:32 UTC, Martin Drašar wrote: Dne 11.2.2015 v 14:16 Vadim Lopatin via Digitalmars-d-announce napsal(a): Matching [ { ( ) } ] highlight is implemented Delete line is available with Ctrl+Y Indent/unindent - new shortcuts added Ctrl + [ ] Hi, when you

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Dicebot via Digitalmars-d
On Wednesday, 11 February 2015 at 17:23:36 UTC, Jacob Carlborg wrote: On 2015-02-11 17:51, Dicebot wrote: Small added effort for release manager to update submodules in meta-repo upon new releases. Can't really imagine anything else right now. You're thinking the meta repository is only

[Issue 14139] GIT HEAD : PI now has wrong value

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14139 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment #6 from

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/11/15 9:08 AM, Vladimir Panteleev wrote: The repository's name is also the default directory name on the user's machine when cloned, so I think its name should identify that it is D-related. In that case wouldn't d be best? -- Andrei

Re: Ncurses deprecated ~master issue

2015-02-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 11 February 2015 at 18:13:10 UTC, Paul wrote: How do I get/process input? Construct the real time input struct outside your loop then use getch if you're only interested in the core keyboard ascii stuff or nextEvent if you want everything. The esc key, in particular, is

Re: Const-correctness and uniqueness. Again.

2015-02-11 Thread deadalnix via Digitalmars-d
On Wednesday, 11 February 2015 at 13:54:12 UTC, Dicebot wrote: On Monday, 9 February 2015 at 23:40:31 UTC, deadalnix wrote: Someone is starting to see where I'm getting at when I'm pushing for owned... I don't think this specific case is a good justification for your proposal - it is simple

Re: Comparing function pointers

2015-02-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 11 February 2015 at 18:40:05 UTC, Freddy wrote: Is the intended behavior? Yes. test2 returns a delegate that closes over a separate copy of the local variable, so the data pointer is different each time. You can get the two pointers with .funcptr and .ptr. You'll find

Re: Comparing function pointers

2015-02-11 Thread ketmar via Digitalmars-d-learn
On Wed, 11 Feb 2015 18:40:03 +, Freddy wrote: import std.stdio; auto test1(){ void testFunc(){ } return testFunc; } auto test2(){ uint a; void testFunc(){ a=1; } return testFunc; } void main(){

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Nick Treleaven via Digitalmars-d
On 11/02/2015 13:52, Dicebot wrote: Biggest problem with RefCounted is that it is a struct. Thus it is inherently incompatible with polymorphic world. For Unique, (which admittedly is a simpler concept), it does work with polymorphic types, see:

Re: Inconsistent coding style in code examples

2015-02-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-02-10 22:36, Steven Schveighoffer wrote: Please, let's not cater to kindles in ddoc. The documentation is generated first and foremost for dlang.org. If you want to write a script to make a book out of it, fine, but screwing up the web site for the sake of the few people that use

[Issue 14169] Template symbol visibility regression

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14169 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/22815447bb4fbf59f4ca7d3a1ddef79f604053f5 fix Issue 14169 - Template

[Issue 14169] Template symbol visibility regression

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14169 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Calypso: Direct and full interfacing to C++

2015-02-11 Thread Kelly via Digitalmars-d-announce
On Monday, 9 February 2015 at 22:38:51 UTC, Elie Morisse wrote: On Monday, 9 February 2015 at 07:10:56 UTC, Suliman wrote: If somebody have working Windows build, could you please share it? It would be nice to know if someone even managed to build Calypso on Windows yet :) Hello Elie, I

Re: Ncurses deprecated ~master issue

2015-02-11 Thread Paul via Digitalmars-d-learn
On Wednesday, 11 February 2015 at 18:37:49 UTC, Adam D. Ruppe wrote: On Wednesday, 11 February 2015 at 18:13:10 UTC, Paul wrote: How do I get/process input? Construct the real time input struct outside your loop then use getch if you're only interested in the core keyboard ascii stuff or

Re: Why is one d file compiled into two files object file executable.

2015-02-11 Thread Kagamin via Digitalmars-d-learn
On Wednesday, 11 February 2015 at 08:49:40 UTC, Andre Artus wrote: First to mind is that in Java .class files are executable (in Java runtime), while object files are not. There was a library, which could load object files with D code, resolve symbols and execute it.

[Issue 14149] Bad std.algorithm error messages

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14149 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --

Re: This Week in D: Issue #4

2015-02-11 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 11 February 2015 at 11:21:46 UTC, Dominikus Dittes Scherkl wrote: Did I missed issue #5 ? No, I did; I was sick most of last week and decided to skip it, just going to bed instead on sunday night.

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Dicebot via Digitalmars-d
On Wednesday, 11 February 2015 at 05:39:59 UTC, H. S. Teoh wrote: On Wed, Feb 11, 2015 at 03:20:57AM +, weaselcat via Digitalmars-d wrote: [...] I was just using RefCounted!T as one example of a major headache I've had with D. [...] Jakob Ovrum has just submitted a PR to make (the

Re: Const-correctness and uniqueness. Again.

2015-02-11 Thread Dicebot via Digitalmars-d
On Monday, 9 February 2015 at 23:40:31 UTC, deadalnix wrote: Someone is starting to see where I'm getting at when I'm pushing for owned... I don't think this specific case is a good justification for your proposal - it is simple enough to accept a library based solution. We need more

Re: DDocs.org: auto-generated documentation for all DUB projects (WIP)

2015-02-11 Thread Kiith-Sa via Digitalmars-d-announce
On Wednesday, 11 February 2015 at 08:41:26 UTC, Mathias LANG wrote: On Tuesday, 10 February 2015 at 22:40:18 UTC, Kiith-Sa wrote: DDocs.org (http://ddocs.org) is a repository of documentation for DUB projects that automatically re-generates docs as new projects/releases/branch changes are

Re: DDocs.org: auto-generated documentation for all DUB projects (WIP)

2015-02-11 Thread Ilya Yaroshenko via Digitalmars-d-announce
Thanks!

Re: Why is one d file compiled into two files object file executable.

2015-02-11 Thread jklp via Digitalmars-d-learn
On Wednesday, 11 February 2015 at 05:08:16 UTC, Venkat Akkineni wrote: Hi I am coming from Java. What is the purpose of an object file why is it generated at compile time in addition to an executable. I know C generates an object file too, but I don't know what the use is. Please point me

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/10/15 7:20 PM, weaselcat wrote: [snip] I hope this was the sort of reply you were looking for, Andrei. Yes, that's good stuff. Thanks! -- Andrei

Re: RFC: std.*.concept convention

2015-02-11 Thread Baz via Digitalmars-d
Hello, I remember the first post about this, a few monthes ago, and the concept of concept is interesting. Do you think it'll be possible to extract a collection of delegate from an agregate which verifies a concept ? - get the concept from an interface - check if this concept is in a struct

Re: Why is one d file compiled into two files object file executable.

2015-02-11 Thread Kagamin via Digitalmars-d-learn
http://www.dsource.org/projects/ddl

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread weaselcat via Digitalmars-d
On Wednesday, 11 February 2015 at 08:21:27 UTC, ketmar wrote: On Wed, 11 Feb 2015 03:20:57 +, weaselcat wrote: I'm sure I'll get a response from ketmar( ;-) ) for your pleasure, sir! believe me or not, but i almost fully share your opinion. i'm not using classes (well, almost), and when

Re: std.allocator ready for some abuse

2015-02-11 Thread John Colvin via Digitalmars-d
On Wednesday, 11 February 2015 at 15:56:07 UTC, Andrei Alexandrescu wrote: On 2/11/15 4:55 AM, ANtlord wrote: On Monday, 17 February 2014 at 15:49:27 UTC, Andrei Alexandrescu wrote: On 2/17/14, 5:55 AM, Dicebot wrote: Andrei, what is current state of std.allocator? I am asking this in context

[Issue 9998] RefCounted is impure

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9998 Ulrich Küttler kuett...@gmail.com changed: What|Removed |Added CC||kuett...@gmail.com --

Re: RFC: std.*.concept convention

2015-02-11 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, February 11, 2015 09:30:12 Jakob Ovrum via Digitalmars-d wrote: There is a difference between a concept and a trait. A concept can be composed of multiple traits. In the context of a concept, these traits could be called primitives. Saying that `isInputRange` is a trait is just

Question about scope of @nogc

2015-02-11 Thread weaselcat via Digitalmars-d-learn
(Scope might have been a bad word choice...) Is @nogc intended to only stop from calling functions that allocate with the GC, or from interacting with the GC altogether? Is there a technical reason that functions such as addrange, etc cannot be @nogc if the former since AFAIK such functions

[Issue 13983] RefCounted needs to be pure, @safe, nothrow

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13983 Ulrich Küttler kuett...@gmail.com changed: What|Removed |Added CC||kuett...@gmail.com --

Re: GC has a barbaric destroyng model, I think

2015-02-11 Thread Orvid King via Digitalmars-d-learn
On Wednesday, 11 February 2015 at 21:34:00 UTC, Andrey Derzhavin wrote: If we are using a DMD realization of destroying of objects, happens the following: at the calling the «destroy» method the calling of dtor takes place always, and then the object which is being destroyed is

Re: GC has a barbaric destroyng model, I think

2015-02-11 Thread ketmar via Digitalmars-d-learn
On Wed, 11 Feb 2015 21:33:59 +, Andrey Derzhavin wrote: If we are using a DMD realization of destroying of objects, happens the following: at the calling the «destroy» method the calling of dtor takes place always, and then the object which is being destroyed is initialized by the

[Issue 14159] Bug in ctRegex - Error: found 'else' instead of statement

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14159 --- Comment #2 from Merlin Meyer-Mitchell db...@m3.sent.com --- (In reply to e10s from comment #1) *** This issue has been marked as a duplicate of issue 12105 *** Thanks! --

GC has a barbaric destroyng model, I think

2015-02-11 Thread Andrey Derzhavin via Digitalmars-d-learn
If we are using a DMD realization of destroying of objects, happens the following: at the calling the «destroy» method the calling of dtor takes place always, and then the object which is being destroyed is initialized by the default state. In other words, after calling «destroy»

[Issue 13972] Make scoped, Unique, and RefCounted @nogc

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13972 Ulrich Küttler kuett...@gmail.com changed: What|Removed |Added CC||kuett...@gmail.com --

Re: RFC: std.*.concept convention

2015-02-11 Thread David Gileadi via Digitalmars-d
On 2/11/15 12:47 PM, Brad Anderson wrote: On Wednesday, 11 February 2015 at 08:00:54 UTC, Jakob Ovrum wrote: [snip] Putting the complexity of the container concept aside; I think we should factor out the concept checkers from std.range.primitives and put them in std.range.concept and establish

[Issue 13972] Make scoped, Unique, and RefCounted @nogc

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13972 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment

Re: RFC: std.*.concept convention

2015-02-11 Thread Brad Anderson via Digitalmars-d
On Wednesday, 11 February 2015 at 08:00:54 UTC, Jakob Ovrum wrote: [snip] Putting the complexity of the container concept aside; I think we should factor out the concept checkers from std.range.primitives and put them in std.range.concept and establish a convention of using modules named

Re: Inconsistent coding style in code examples

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 10:51:19 -0800, H. S. Teoh via Digitalmars-d wrote: and (2) I don't have a Windows machine to test changes to win32.mak, I think you can run DM make under Wine. Interesting. yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works

Re: Cannot use the same template arguments on function as the ones on struct

2015-02-11 Thread anonymous via Digitalmars-d-learn
On Wednesday, 11 February 2015 at 22:14:44 UTC, MrSmith wrote: http://dpaste.dzfl.pl/5f1d5d5d9e19 Instead I need to use template constraint which is less compact. http://dpaste.dzfl.pl/571ae84d783e Why such behavior happens? Seems to work when you add an empty template argument list to

Re: Inconsistent coding style in code examples

2015-02-11 Thread Walter Bright via Digitalmars-d
On 2/11/2015 2:15 PM, Vladimir Panteleev wrote: On Wednesday, 11 February 2015 at 18:53:41 UTC, H. S. Teoh wrote: But what's the use if I don't have kindle for viewing the results? You can find .mobi viewers online. Amazon provides some as well, I think. 1. I've seen Kindles at the pawn

Re: Inconsistent coding style in code examples

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 14:21:41 -0800, Walter Bright wrote: On 2/11/2015 1:37 PM, ketmar wrote: yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works like a charm (except dmd.exe itself, which is broken ;-). Bugzilla issue? sure i did, along with

Re: How to make a Currency class from std.BigInt?

2015-02-11 Thread RuZzz via Digitalmars-d-learn
https://github.com/acmeism/RosettaCodeData/blob/master/Task/Arithmetic-Rational/D/arithmetic-rational.d

DCD 0.5.0

2015-02-11 Thread Brian Schott via Digitalmars-d-announce
Version 0.5.0 of DCD has been tagged on Github. https://github.com/Hackerpilot/DCD/releases/tag/v0.5.0 DCD is a client/server program used to provide D code autocompletion for various text editors and IDEs.

Re: Inconsistent coding style in code examples

2015-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 11 February 2015 at 18:53:41 UTC, H. S. Teoh wrote: But what's the use if I don't have kindle for viewing the results? You can find .mobi viewers online. Amazon provides some as well, I think.

Re: London D Programmers MeetUp

2015-02-11 Thread Walter Bright via Digitalmars-d-announce
On 2/4/2015 1:17 PM, Laeeth Isharc wrote: One interesting anecdote: somebody in a financial services company gave an account of giving D a try as a way to prototype something quickly, intending to rewrite it later in a more conventional language. The prototype went straight into production, and

[Issue 14097] root/async.c: use after free

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14097 Ali Cehreli acehr...@yahoo.com changed: What|Removed |Added CC||acehr...@yahoo.com

Re: Inconsistent coding style in code examples

2015-02-11 Thread Walter Bright via Digitalmars-d
On 2/11/2015 1:37 PM, ketmar wrote: yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works like a charm (except dmd.exe itself, which is broken ;-). Bugzilla issue?

Re: Inconsistent coding style in code examples

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 15:21:59 -0800, Walter Bright wrote: On 2/11/2015 2:34 PM, ketmar wrote: On Wed, 11 Feb 2015 14:21:41 -0800, Walter Bright wrote: On 2/11/2015 1:37 PM, ketmar wrote: yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works like a

Re: Inconsistent coding style in code examples

2015-02-11 Thread Walter Bright via Digitalmars-d
On 2/11/2015 2:34 PM, ketmar wrote: On Wed, 11 Feb 2015 14:21:41 -0800, Walter Bright wrote: On 2/11/2015 1:37 PM, ketmar wrote: yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works like a charm (except dmd.exe itself, which is broken ;-).

[Issue 14155] [REG2.066] A defect in DIP29: the return value of some pure functions cannot be unique pointer

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14155 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e17d26719eb61a30518c997718c14e38bb2912da fix Issue 14155 - A defect

[Issue 14141] `pure` member function returning qualified member result is implicitly convertible to unqualified

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14141 github-bugzi...@puremagic.com changed: What|Removed |Added Resolution|DUPLICATE |FIXED --

[Issue 13640] [REG2.066] can break immutability with inout

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13640 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/283aa4add2868dc7424c5232f18bbcfc392ed26a Use constConv in

[Issue 14155] [REG2.066] A defect in DIP29: the return value of some pure functions cannot be unique pointer

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14155 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Inconsistent coding style in code examples

2015-02-11 Thread Walter Bright via Digitalmars-d
On 2/11/2015 3:34 PM, ketmar wrote: no, i didn't found anything else. with this patch dmd with wine works perfectly -- no crashes since then. Thanks again for finding the problem and posting a fix.

Cannot use the same template arguments on function as the ones on struct

2015-02-11 Thread MrSmith via Digitalmars-d-learn
Here I have templated struct that matches type with CborConfig tempate specialization CborConfig will have more parameters in future and all of them will be accessed via alias members, so I've used variadic (T...) parameter whule matching. --- template

Re: How to make a Currency class from std.BigInt?

2015-02-11 Thread RuZzz via Digitalmars-d-learn
With eris lib some problems, the first error: .../.dub/packages/eris-0.0.1/eris/integer/digits.d(241): Error: cannot implicitly convert expression (digits.length) of type ulong to int What can I import to use rational numbers? I found it

[Issue 14160] [REG2.066] mutable global data access is wrongly accepted in pure function

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14160 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14160] [REG2.066] mutable global data access is wrongly accepted in pure function

2015-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14160 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b6e8ef68dda3f306c70be659a69efa1db897798f fix Issue 14160 - mutable

  1   2   >