Re: ddoc crossreferences

2008-11-29 Thread Morusaka
I think I've find a way to make it work (with CandyDoc at least) I've definied the following macro: /** * Macros: * DDOC_PSYMBOL = $0explorer.outline.addDecl('$0'); */ and when I want a link to some definition, I've to write a line like this: // immagine you want to link to opEquals /**

Re: ddoc crossreferences

2008-11-29 Thread Morusaka
Morusaka Wrote: > Ok, with the help of grep i've found a lot of examples in Tango sources, for > instance in: tango/text/locale/Core.d > > $(LINK2 #whereToGo, linkName) > ... > ... > ... > $(ANCHOR whereToGo) > ... > ... > ... > Uhm... I'm not sure where ANCHOR macro is defined... I can't find

Re: ddoc crossreferences

2008-11-29 Thread Morusaka
Ok, with the help of grep i've found a lot of examples in Tango sources, for instance in: tango/text/locale/Core.d $(LINK2 #whereToGo, linkName) ... ... ... $(ANCHOR whereToGo) ... ... ... Now I wonder if this is the right way to do this... i mean if the documentation has to be processed in ord

ddoc crossreferences

2008-11-29 Thread Morusaka
Hi, is there a way to include cross references in my documentation. For example, i'd like to do something like: /** * foo bla bla bla * See_Also: * bar */ void foo() {...} /** * bar bla bla * See_Also: * foo */ void bar() {...} and i'd like elements in See_Also section to be link to o

Re: custom opCmp for array sort

2008-11-29 Thread Gide Nwawudu
On Fri, 28 Nov 2008 13:58:28 -0500, Kagamin <[EMAIL PROTECTED]> wrote: >just found it accidentally >http://d.puremagic.com/issues/show_bug.cgi?id=1309 Yep, this issue prevents Path.opCmp from being called. The version below works. import std.string: find, cmp; import std.stdio: writefln; import

Re: Internal delegate and Stack Overflow

2008-11-29 Thread tsalm
Le Sat, 29 Nov 2008 01:49:20 +0100, BCS <[EMAIL PROTECTED]> a écrit: struct C(R, A...) { A args; R function(A) dg; static R delegate() opCall(R function(A) dg, A a) { C!(R, A) ret; ret.dg=dg; foreach(int i,_;A) ret.args[i] = a[i]; return &ret.fn; } R fn()