Re: RFC: std.concepts

2014-10-24 Thread Dicebot via Digitalmars-d
It is important to leave possibility for compiler to verify that restricted types are used only in compliance with a concept. I am thinking about moving some basic primitives to druntime and designing it in a bit more light-weight way - for example, I don't like usage of Concept base class

Re: RFC: std.concepts

2014-10-20 Thread Hpkl via Digitalmars-d
On Sunday, 19 October 2014 at 22:39:06 UTC, Shammah Chancellor wrote: On 2014-10-19 22:14:29 +, Hpkl said: On Sunday, 19 October 2014 at 21:10:12 UTC, Shammah Chancellor wrote: It was request that I create a NG thread about a module I was hoping to merge with phobos. (std.concepts)

Re: RFC: std.concepts

2014-10-20 Thread Chris Williams via Digitalmars-d
On Sunday, 19 October 2014 at 21:10:12 UTC, Shammah Chancellor wrote: It was request that I create a NG thread about a module I was hoping to merge with phobos. (std.concepts) Please take a look. It seems like it might have some good use cases, but I'm not sure that it warrants a new module.

Re: RFC: std.concepts

2014-10-20 Thread Leandro Motta Barros via Digitalmars-d
Looks very nice! I think I could make use of it. (Though I use D only recreationally :-) ) LMB On Sun, Oct 19, 2014 at 7:10 PM, Shammah Chancellor via Digitalmars-d digitalmars-d@puremagic.com wrote: It was request that I create a NG thread about a module I was hoping to merge with phobos.

RFC: std.concepts

2014-10-19 Thread Shammah Chancellor via Digitalmars-d
It was request that I create a NG thread about a module I was hoping to merge with phobos. (std.concepts) Please take a look. Thanks in advance. -S Link to PR: https://github.com/D-Programming-Language/phobos/pull/2627 Docs: bool isConcept(T, C, bool diagnostics = false, string

Re: RFC: std.concepts

2014-10-19 Thread Hpkl via Digitalmars-d
On Sunday, 19 October 2014 at 21:10:12 UTC, Shammah Chancellor wrote: It was request that I create a NG thread about a module I was hoping to merge with phobos. (std.concepts) Please take a look. Thanks in advance. So basically it allows, at compile time, to check that an agregate

Re: RFC: std.concepts

2014-10-19 Thread Shammah Chancellor via Digitalmars-d
On 2014-10-19 22:14:29 +, Hpkl said: On Sunday, 19 October 2014 at 21:10:12 UTC, Shammah Chancellor wrote: It was request that I create a NG thread about a module I was hoping to merge with phobos. (std.concepts) Please take a look. Thanks in advance. So basically it allows, at