Deutsch   English   Français   Italiano  
<1735a8e1345609d26ce66b5202dddb345122c6ad@i2pn2.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: what inline means?
Date: Sun, 24 Nov 2024 19:39:05 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <1735a8e1345609d26ce66b5202dddb345122c6ad@i2pn2.org>
References: <vhqjtj$19sgb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Nov 2024 18:39:06 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="3956485"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0";
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:91.0) Gecko/20100101
 Firefox/91.0 SeaMonkey/2.53.19
In-Reply-To: <vhqjtj$19sgb$1@dont-email.me>
X-Spam-Checker-Version: SpamAssassin 4.0.0
Bytes: 1761
Lines: 28

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)