Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!cimshop!davidm From: cimshop!davidm@uunet.UU.NET (David S. Masterson) Newsgroups: comp.lang.c++ Subject: Re: Inline style question Message-ID: Date: 9 Apr 90 00:04:27 GMT References: <154@dumbcat.UUCP> <156@dumbcat.UUCP> Sender: davidm@cimshop.UUCP Organization: Consilium Inc., Mountain View, California. Lines: 29 In-reply-to: marc@dumbcat.UUCP's message of 6 Apr 90 03:23:48 GMT In article <156@dumbcat.UUCP> marc@dumbcat.UUCP (Marco S Hyman) writes: Inlines must be declared as such before they are used. The declaration can be part of a definition. This puts the programmer in the position of either declaring inlines within the class body or ensuring the functions are in a certain order. I know I'm gonna get hit about this, but... What's wrong with: class alpha { ... public: ... int beta(); }; ... inline int beta() { ... } You can then (potentially) do all your class declarations before doing any inline definitions and finally the rest of the definitions. Well? -- =================================================================== David Masterson Consilium, Inc. uunet!cimshop!davidm Mt. View, CA 94043 =================================================================== "If someone thinks they know what I said, then I didn't say it!"