🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4159

Re: Modula2's godawful IO.

#4159
From: BRUCE SZABLAK
Date: Tue, 12 Apr 1988 18:21
19 lines
1060 bytes
In article <547@m10ux.UUCP>, rgr@m10ux.UUCP (Duke Robillard) writes:
> In article <96@lzaz.ATT.COM> bds@lzaz.ATT.COM (BRUCE SZABLAK) writes:
> >I like C++'s overloading of the << and >> operator's even better ...
> 
> Yeah, but that doesn't help me print out an error message, two strings,
> and an integer return code.  I don't want to have to write a method
> for every print....
> 

In C++:

#include <stream.h>

Then:
...
  cout << "error message " << string1 << " " << string2 << " " << rc;
...

The header file defines printing for the ususal types.
Technical Details
Message-ID: <99@lzaz.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!think!bloom-beacon!gatech!uflorida!codas!cpsc6a!atl2!akgua!mtunx!lzaz!bds
References: <764@ndsuvax.UUCP> <535@m10ux.UUCP> <96@lzaz.ATT.COM> <547@m10ux.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!think!bloom-beacon!gatech!uflorida!codas!cpsc6a!atl2!akgua!mtunx!lzaz!bds
From: bds@lzaz.ATT.COM (BRUCE SZABLAK)
Newsgroups: comp.lang.modula2,comp.lang.misc,comp.lang.c,comp.lang.pascal
Subject: Re: Modula2's godawful IO.
Message-ID: <99@lzaz.ATT.COM>
Date: 12 Apr 88 18:21:41 GMT
References: <764@ndsuvax.UUCP> <535@m10ux.UUCP> <96@lzaz.ATT.COM> <547@m10ux.UUCP>
Organization: AT&T ISL Middletown NJ USA
Lines: 19
Summary: Is done for you.