Searching the digitalmars webpage

Jarrett Billingsley kb3ctd2 at yahoo.com
Wed Jan 30 05:59:09 PST 2008


"Ary Borenszweig" <ary at esperanto.org.ar> wrote in message 
news:fnpr6g$4sb$1 at digitalmars.com...
> I've already found it. But, for example, you can use opCall with classes. 
> Why opCall isn't also explained in "Classes"?

Because it's only with structs does "static opCall" have any special 
meaning.  They are structs' version of constructors.  With classes, "static 
opCall" isn't anything special, it just lets you call the class type as if 
it were a function.  The compiler doesn't ever use it.

> Another example: I want to see how to implement opApply correctly. I must 
> enter "Statements", go to the "foreach" section, and there it is. I know 
> this because I tried several links before I found it. Is there an index of 
> keywords and concepts? It would be much simple to find something with it.

Try the wiki?  Click the comments button at the top-right.  In fact, on the 
"operator overloading" page the very first thing in the wiki is "why isn't 
opApply listed and where is it documented?"  ;)

I know, not exactly what you were looking for, but the wiki often provides 
extra, more intelligent links between sections of the docs. 




More information about the Digitalmars-d-learn mailing list