Site Menu Project Specification Implementation Recommendations Reference Needs Updating Work in Progress Wastebasket Wiki Manual |
Pervasive Macro WRITEFWiP.PervasiveMacroWRITEF HistoryHide minor edits - Show changes to markup 2010-01-23 10:23
by -
Added line 2:
2010-01-23 10:23
by -
Changed lines 1-15 from:
In addition to pervasive macros READ and WRITE, a macro WRITEF for the purpose of formatted output could be added. This macro could either take a fixed number of parameters: WRITEF( file, num, fieldLen ); (* always three parameters *) WRITEF( file, num, fieldLen ); (* always four parameters *) Alternatively, the macro could be variadic:
Unlike C's variadic printf and fprintf macros, the variadic WRITEF variant would remain type safe. to:
In addition to pervasive macros READ and WRITE, a macro WRITEF for the purpose of formatted output shall be added. WRITEF( file, formatString, data ... ); expands to: <TypeOf(data)>.WriteF( file, formatString, data ...); where <TypeOf(data)> is replaced by the identifier of the type of data 2010-01-14 11:57
by -
Changed line 15 from:
to:
Unlike C's variadic printf and fprintf macros, the variadic WRITEF variant would remain type safe. 2010-01-14 11:50
by -
Changed line 11 from:
to:
2010-01-14 11:50
by -
Changed line 13 from:
to:
2010-01-14 11:27
by -
Changed lines 11-13 from:
to:
2010-01-14 11:27
by - new file by benjk
Added lines 1-15:
In addition to pervasive macros READ and WRITE, a macro WRITEF for the purpose of formatted output could be added. This macro could either take a fixed number of parameters: WRITEF( file, num, fieldLen ); (* always three parameters *) WRITEF( file, num, fieldLen ); (* always four parameters *) Alternatively, the macro could be variadic:
|