www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/09/05:48:11

From: "Raf256" <raf256 AT go2 DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: ilnine ?
Date: Sun, 9 Sep 2001 11:29:37 +0200
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: chello062179024002.chello.pl
X-Original-NNTP-Posting-Host: chello062179024002.chello.pl
Message-ID: <3b9b36a7$1@news.vogel.pl>
X-Trace: news.vogel.pl 1000027815 chello062179024002.chello.pl (9 Sep 2001 11:30:15 +0200)
X-Complaints-To: Usenet AT news DOT vogel DOT pl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
why use 'inline' statment ? If compiler is good enought, it sholud give same
result if functions are and aren't inline, when optimization for speed is
checked...

There is a litle bug, I will make litle example and post it, but generaly
its like this :

m.cc  -  main(), using class cTest
test.h - delc. of class cTest that has function  inline virtual fun()
test.cc - definition of fun()
error : linker can't find body of fun()
work-arround : delete 'inline'
this IS a bug, because some times it make sens to use both virtual and
inline functinos...

Is this fixed in latest DJGPP version ?  my GCC is about 4-8 months old...

--
Raf256 : C C++ VC VB PHP TP Delphi JS Java
,--, _  ,-   _  _  _  ,---------------------------------------------,
|,-'`_|_|_  `_||_'|_' | raf256 AT go2 DOT pl
| `\(_) |   |_,,_||_| |   (SIGN not ready ;)


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019