Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!uw-entropy!dataio!bright From: bright@Data-IO.COM (Walter Bright) Newsgroups: comp.lang.c++ Subject: Re: inline & Zortech compiler Message-ID: <1928@dataio.Data-IO.COM> Date: 5 Apr 89 18:43:52 GMT References: <42890@clyde.ATT.COM> <1911@dataio.Data-IO.COM> <3390@nunki.usc.edu> Reply-To: bright@dataio.Data-IO.COM (Walter Bright) Distribution: na Organization: Data I/O Corporation; Redmond, WA Lines: 10 In article <3390@nunki.usc.edu> jeenglis@nunki.usc.edu (Joe English) writes: >Not inlining loops and switches makes sense, but why not >if statements? >What are the technical problems with inlining if's? To inline if's, it's necessary to convert them to equivalent expressions involving ?:, && and || operators. (The idea is to convert the entire function to one expression.) In fact, I asked Bjarne and he said that this was exactly what cfront did. However, I have not gotten around yet to putting in the code to do this, hence it doesn't inline if's just yet.