[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [ALPHA-PATCH] THIRD try at fixing up socklen issues on Solaris
From:       Michael Matz <matz () kde ! org>
Date:       2001-04-06 10:54:00
[Download RAW message or body]

Hi,

On Fri, 6 Apr 2001, Oswald Buddenhagen wrote:

> > You seem to think (at least your last mails indicate this), that a
> > typedef introduces somehow a new thing or name.
> no. a typedef is an alias for the data type it represents.

Then I overinterpreted your messages, sorry.

> > (ergo not allowed in the same file, because of equal signatures)
> the above two prototypes _are_ allowed in the same file in any
> case - exactly because they are prototypes (for the same function).

Prototypes are "Schall und Rauch" without implementation.  By "in the same
file" I imply that those functions somehow have a "content", because
contentless things can't be anywhere, and in fact are no things at all.
The only reasonable definition for content of a function is it's
implementation, ergo I was talking exactly about that implementation ;)
Btw. that "in the same file" does _not_ only hold for source files.  In
fact those "two" functions must not even be in the same executable (if
they come from libs or the exe itself is irrelevant), if their names are
globally visible (or at least visible at two different points (in time or
space)), and they are not weak and no other means exist to somehow
prioritize one implementation over the other, and they haven't the
exact same semantic so that any conflicts don't matter.  From that
follows, that my notation had nothing to do with prototypes but was
language independant metasyntantic sugar to make my mail understandable (I
should have left out the ";"'s)   ;-))

> but that's what you had in mind, right? :)

You guessed it ;)

> yes, but the fine print is sometimes important (i hope, i demonstrated
> it cleary enough), so it is important not to use them as synonyms - at
> most as analogies.

I fully support that.

> yes, i'm a nitpicker. :)

Dito. (where appropriate ;) )


Ciao,
Michael.

 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic