Re: what inline means?

Liste des GroupesRevenir à cl c  
Sujet : Re: what inline means?
De : profesor.fir (at) *nospam* gmail.com (fir)
Groupes : comp.lang.c
Date : 24. Nov 2024, 19:39:05
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <1735a8e1345609d26ce66b5202dddb345122c6ad@i2pn2.org>
References : 1
User-Agent : Mozilla/5.0 (Windows NT 10.0; WOW64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.19
Thiago Adams pisze:
  My current thoughts.
  - if the function is not defined (no implementation) then inline will define the function.
   inline int f(){ return 1; }
  inline int f(){ return 1; } //error already defined
   - if the function is already defined somewhere then it is just a "view" of the code. (This view can be used to "inline code")
    extern int f();
  inline int f(){ return 1; } //ok
    - if a inline function is declared and not define at current file then it is a warning
inline int f();//warning
  
im not sure if teh question is reasonable, (not reading into it)
  inline is hint so maybe the word inline means the same as no inline?
and probably the inline being treaten as a hint is in fact good
(depending on the system)

Date Sujet#  Auteur
22 Nov 24 * what inline means?3Thiago Adams
24 Nov 24 `* Re: what inline means?2fir
25 Nov 24  `- Re: what inline means?1Thiago Adams

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal