Re: c++ operator << support for debug()()

From: Robert Collins <robertc@dont-contact.us>
Date: 07 Jul 2003 22:43:48 +1000

On Mon, 2003-07-07 at 22:30, Alan Barrett wrote:
> My way, the caller must supply a trailing semicolon in
>
> debugs(x,y)(a << b << c);
>
> whereas your way the caller is not allowed to supply a trailing semicolon.
> Supplying the trailing semicolon is more natural; it makes use of the macro
> more closely resemble use of an ordinary function.

Thanks for the feedback, I'll do that.

Interestingly though, my testcases (in test-suite/debug.cc in the
branch) use a trailing semicolon quite happily.

I'll put up a tarball for experimentation...

Rob

-- 
GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.

Received on Mon Jul 07 2003 - 06:44:08 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:15 MST