Re: Function typedefs have any use?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Kevin P. Fleming" <kpfleming@xxxxxxxxxxxxxxx> writes:

| Gabriel Dos Reis wrote:
| 
| > But, yes, you can't use it to *define* it.  Think about how you'd
| > introduce the function parameters.
| 
| Right, so it's kind of pointless then, seeing as you have have to

I guess "pointless" is in the eye of beholder.  I've used that ability
quite a lot in some projects, where a large number of functions
sharing the same prototype has to be declared. 

| repeat the entire function prototype when you define it. It seems that
| it would be logical to support defining the function and only
| supplying the parameter names, given that their types are already
| known from it being forward-declared, but C does not have that
| ability. Too bad :-)

Care to make a concrete proposal?  There is no point in complaining
if you can't improve over the situation...

-- Gaby

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux