home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!dptg!ulysses!allegra!alice!bs
- From: bs@alice.att.com (Bjarne Stroustrup)
- Newsgroups: comp.lang.c++
- Subject: Re: risky inline
- Keywords: inline, safe programming
- Message-ID: <23566@alice.att.com>
- Date: 27 Aug 92 17:19:33 GMT
- References: <1992Aug27.142700@uni-paderborn.de>
- Organization: AT&T Bell Laboratories, Murray Hill NJ
- Lines: 17
-
-
-
- trachos@uni-paderborn.de (Konstantin Trachos @ Uni-GH Paderborn, Germany) writes
-
- > Maybe this topic is well known, but I realy want to know the reason,
- > inline has been introduced for.
-
- example of how to trick cfront into inconsistent use
- of a member function by declaring inconsistent inline
- functions in different files
-
- > I think, that a safe compiler requires safe Language-rules,
- > not only carefull Programmers.
-
- Actually, what you found was a compiler error. The example you gave
- was illegal according to the language rules, but hard to test for.
- It is not legal to have two different definitions of a function.
-