Function Prototypes in D?

Joscci jsantos.uno.ceen at gmail.com
Fri May 25 10:34:28 PDT 2007


BCS Wrote:

> Reply to Joscci,
> 
> > Hello everyone,
> > 
> > I'm a newcomer to the D language (though not new to programming) and
> > currently reading through the documentation to learn this fascinating
> > new language.
> > 
> > In any case, I was wondering -- does D make use of function prototypes
> > like in C/C++? or are function definitions all that is necessary in D?
> > 
> > I did tried experimenting with the compiler and it appears that the
> > answer to my question is the latter, but wanted to make sure this is
> > indeed the case.
> > 
> > Thanks!
> > 
> 
> Prototypes can be used, but should only be used where the source is not available 
> (closed source libs or cross language linking).
> 
> 

Sweet.  Thanks for your input. :o)




More information about the Digitalmars-d mailing list