Feature request: function prototypes

Jarrett Billingsley kb3ctd2 at yahoo.com
Fri Feb 8 08:05:35 PST 2008


"Robert Fraser" <fraserofthenight at gmail.com> wrote in message 
news:fohlg3$acr$1 at digitalmars.com...
> This may seem like a pretty stupid request, but since I use a lot of 
> version() statements in my code; it'd be really cool to have something 
> like function signatures at the top of my file. When I declare my 
> versioned functions, I'd love to be able to have them checked against 
> prototypes declared above their use, as a first line of defense (so I 
> don't need to r-test it on different OSes and libraries if I make an 
> obvious change to one of the signatures or something).

Would it be possible to put the version statement inside the function 
bodies?  Yes, it's somewhat more typing, but it means you only have to 
actually declare each function once (and write ddoc for them once, as a 
bonus). 





More information about the Digitalmars-d mailing list