LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Daryl Tester <Daryl.Tester@iocane.com.au>
To : Jason Tan <jason@rebel.rebel.net.au>
Date: Fri, 1 Jun 2001 16:52:51 +0930
Re: A view on MS and licencing ...
"Jason Tan" <jason@rebel.rebel.net.au> wrote:
>> Oh, it works, but you can printf() in C++ as well - my point was
>> that if you were going to do a C++'ism, may as well go all the
>> way (hmm, there's a catchy slogan ...) as Bjarne intended.
> I think endl will do a flush() for you too, so I think there is a sematnic
> difference as well as syntactic one.
Quite possibly, or maybe not, as the newline normally invokes an
implied flush under the standard C library as well (depending on
your output device, if it be file or tty). To whit, 'printf("hi");
sleep(10); printf("\n");' produces the entire "hi\n" after 10 seconds.
Either way, it's one of those unexpected side-effects (for C or C++)[1].
Hmmm. Friends don't let friends do member functions or look at their
private parts[2] (or friends don't let friends get Friends haircuts).
Regards,
Daryl Tester
[1] I'm babbling. Blame lack of sleep and a deficient caffeine gland.
[2] Old C++ joke, kinda like myself.
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page