An issue with templates with non-existant symbols

2011-08-21 Thread Andrej Mitrovic
void foo(T)(T t) if(is(X == struct)) { } void main() { foo(4); } This prints out: test.d(9): Error: template test.foo(T) if (is(X == struct)) does not match any function template declaration test.d(9): Error: template test.foo(T) if (is(X == struct)) cannot deduce template function from argu

Re: where is ddoc.

2011-08-21 Thread Mike Parker
On 8/21/2011 8:32 PM, maarten van damme wrote: It would be great to also have a link to the full phobos documentation generated with candydoc on the digitalmars d page instead of http://www.digitalmars.com/d/2.0/phobos/ , candydoc generates something more readable and structured. The new offic

Re: Regarding nothrow and @safe

2011-08-21 Thread Jonathan M Davis
On Sunday, August 21, 2011 12:38:47 Jacob Carlborg wrote: > On 2011-08-21 02:26, Jonathan M Davis wrote: > > On Saturday, August 20, 2011 18:18:25 Sean Eskapp wrote: > >> bearophile: > >>> As far as I know they have decided to make memory overflow errors, > >>> so > >>> they are > >> > >> not exce

Re: How do "pure" member functions work?

2011-08-21 Thread Timon Gehr
On 08/21/2011 09:10 PM, Don wrote: bearophile wrote: Sean Eskapp: Oh, I see, thanks! This isn't documented in the function documentation! D purity implementation looks like a simple thing, but it's not simple, it has several parts that in the last months have be added to the language and com

Re: How do "pure" member functions work?

2011-08-21 Thread Don
bearophile wrote: Sean Eskapp: Oh, I see, thanks! This isn't documented in the function documentation! D purity implementation looks like a simple thing, but it's not simple, it has several parts that in the last months have be added to the language and compiler, and we are not done yet, th

Re: where is ddoc.

2011-08-21 Thread Jesse Phillips
On Sun, 21 Aug 2011 13:32:08 +0200, maarten van damme wrote: > as with most tools mentioned on the digitalmars homepage I am unable to > find ddoc. CandyDoc is DDoc. Or at least CandyDoc is just a bunch of macros and CSS files for DDoc. DDoc is D's documentation standard. At one time it was its

Re: where is ddoc.

2011-08-21 Thread maarten van damme
candydoc is abondonned but still functional I think. I've read there was also a ddoc.exe but I think that was for d1? anyway It works now, thank you 2011/8/21 simendsjo > On 21.08.2011 13:38, simendsjo wrote: > >> On 21.08.2011 13:32, maarten van damme wrote: >> >>> as with most tools mentioned

Re: where is ddoc.

2011-08-21 Thread simendsjo
On 21.08.2011 13:38, simendsjo wrote: On 21.08.2011 13:32, maarten van damme wrote: as with most tools mentioned on the digitalmars homepage I am unable to find ddoc. I know it exists, judging by the whole page dedicated to it but the tool itself is never mentioned in any download page. Not to o

Re: where is ddoc.

2011-08-21 Thread simendsjo
On 21.08.2011 13:32, maarten van damme wrote: as with most tools mentioned on the digitalmars homepage I am unable to find ddoc. I know it exists, judging by the whole page dedicated to it but the tool itself is never mentioned in any download page. Not to offend anyone but the digitalmars homepa

where is ddoc.

2011-08-21 Thread maarten van damme
as with most tools mentioned on the digitalmars homepage I am unable to find ddoc. I know it exists, judging by the whole page dedicated to it but the tool itself is never mentioned in any download page. Not to offend anyone but the digitalmars homepage really could use some rethinking. It was one

Re: Regarding nothrow and @safe

2011-08-21 Thread Jacob Carlborg
On 2011-08-21 02:26, Jonathan M Davis wrote: On Saturday, August 20, 2011 18:18:25 Sean Eskapp wrote: bearophile: As far as I know they have decided to make memory overflow errors, so they are not exceptions, you can't catch them. Other people will confirm this or not. In this case, how would