Modula2's godawful IO.

Duke Robillard rgr at m10ux.UUCP
Tue Apr 12 11:58:23 AEST 1988


In article <96 at lzaz.ATT.COM> bds at lzaz.ATT.COM (BRUCE SZABLAK) writes:
>In article <535 at m10ux.UUCP>, rgr at m10ux.UUCP (Duke Robillard) writes:
>> I hate C as much as the next guy, but it seems to me that printf is
>> the solution.
>
>I like C++'s overloading of the << and >> operator's even better than
>printf. It allows you to define custom print routines for each structure
>(class) declared, and then to print (to stdout for example) you do:
>	cout << god_awful_structure_instance;

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....



-- 
+                                
|       Duke Robillard
|       AT&T Bell Labs           m10ux!rgr at ihnp4.UUCP                 
|       Murray Hill, NJ          {any biggy}!ihnp4!m10ux!rgr



More information about the Comp.lang.c mailing list