Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #58370

Re: New directions in C: Standard library input and output

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!.POSTED!not-for-mail
From Melzzzzz <mel@zzzzz.com>
Newsgroups comp.lang.c
Subject Re: New directions in C: Standard library input and output
Date Wed, 18 Mar 2015 01:00:48 +0100
Organization albasani.net
Lines 21
Message-ID <20150318010048.3d53e047@maxa-pc> (permalink)
References <mea1j3$cle$1@speranza.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net vI4jypO/wH8IlIHvpOY89ri1wSBicknr1No4f3LpfzrwM1fgxTvwrRjtug9oa77DbtoZDZYo3NqtjBNJpPCmwm6Qigd46eTV/q0QMNs6fewtbYlyo5CgURW65VKcbgFR
NNTP-Posting-Date Wed, 18 Mar 2015 00:00:48 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="8fmlf6WZbE3gsoCF3FCUc0IQUHTe9eIPWM5VEhhPVRD26VmFuIPg1t/z+CuK+xx9r7rXZh2INpYkYitvLSgKq6hp1yd9irC42nhrSlSPVRGcBW3NHjOR2hxnFrZjmufU"; mail-complaints-to="abuse@albasani.net"
X-Newsreader Claws Mail 3.11.1 (GTK+ 2.24.27; x86_64-unknown-linux-gnu)
Cancel-Lock sha1:zOylq1e3E97O1LH6m23yTaNGcl0=
Xref csiph.com comp.lang.c:58370

Show key headers only | View raw


On Tue, 17 Mar 2015 21:08:06 +0100
jacob navia <jacob@spamsink.net> wrote:

> 1.9 Overloading shift operator
> 1.9.1 Motivation
> As described in 1.3 the general advantages of operator overloading 
> have been explained. The C standard library should also provide some 
> structures which already have some operators overloaded in order to 
> perform, for example, input and output.
> 
> For output the name outc should be used, for stderr the name errc and 
> for input the name inc. There should also be definitions for newline, 
> for example lend.
> 
> 1.9.2 Syntax
> outc << "This is a string on stdout" << lend;
> errc << "And this on stderr" << lend;
> 
> 

Heh, this really starts to look like c++ ;)

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

New directions in C: Standard library input and output jacob navia <jacob@spamsink.net> - 2015-03-17 21:08 +0100
  Re: New directions in C: Standard library input and output Bartc <bc@freeuk.com> - 2015-03-17 20:18 +0000
  Re: New directions in C: Standard library input and output jacob navia <jacob@spamsink.net> - 2015-03-17 21:29 +0100
  Re: New directions in C: Standard library input and output Melzzzzz <mel@zzzzz.com> - 2015-03-18 01:00 +0100
    Re: New directions in C: Standard library input and output jacob navia <jacob@jacob.remcomp.fr> - 2015-03-18 09:00 +0100
      Re: New directions in C: Standard library input and output Melzzzzz <mel@zzzzz.com> - 2015-03-18 10:45 +0100

csiph-web