Searching the digitalmars webpage

Ary Borenszweig ary at esperanto.org.ar
Wed Jan 30 06:40:16 PST 2008


Jarrett Billingsley wrote:
> "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.

So it is used by the compiler. :-)

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.

Thanks, I'll use that if I think something is in a page but it's not.


More information about the Digitalmars-d-learn mailing list