Re: [cbm4linux-users] cbm4linux on Suse 8.2 & GCC 3.3
Brought to you by:
cbm4linux
From: Michael K. <mic...@pu...> - 2003-04-15 14:54:35
|
On Tue, 15 Apr 2003, Spiro Trikaliotis wrote: > Michael Klein wrote: > > > Are multi-line literals an error in gcc 3.3? (2.95 Doesn't complain at > > all here, while 3.0 prints a deprecation warning) > > > well, regardless of whether they are errors or not: Why use them? Aesthetical reasons aside, I can only think of some pre-ANSI compiler that doesn't allow string concatenation but line continuation. > Something like > > a = "abc" > "def" > "ghi"; > > Works perfectly in ANSI-C and C++, is defined and is *exactly* the > same as > > a = "abcdefghi"; Yup, that's how I'm doing it right now ;-) > On the other hand, Andreas' solutions as far from that good since it > uses a new call to printf() for every line. That's right. Wouldn't hurt /that/ much here, though ;-) Take care, Michael -- I wish there was a knob on the TV to turn up the intelligence. There's a knob called "brightness", but it doesn't seem to work. -- Gallagher |