Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: a kind of template (or macro) to reuse parts of code... Date: Sat, 15 Oct 2011 09:53:59 +1300 Lines: 22 Message-ID: <9frlr7FvblU2@mid.individual.net> References: <9frk0iFvblU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 4y5fpa0oN5fWEfsZuW9aSQyrTNIHe4NawTQZJAbm88PU6plQ7g Cancel-Lock: sha1:986FCMC7V+4Rx/0gi0WiG0KlkIU= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:10851 On 10/15/11 09:36 AM, A wrote: *Please don't snip attributions, it is rude.* I'll ignore you if you do it again. > Ian wrote: >> C++ (and C these days) compilers are very good at inlining trivial >> functions. > > OK, it is not just the speed, it is also the convenience and maintaining the > code. How is a macro list thing more convenient than a function? > Anyway, back to topic, is something like what I asked possible in a way to > do with macros or templates or any other way except functions? Why? You haven't provided any justification for this new construct. -- Ian Collins