Function Prototypes in D?

BCS ao at pathlink.com
Fri May 25 10:12:02 PDT 2007


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).





More information about the Digitalmars-d mailing list