Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/data-except.cfa

    rfe0b94f rd00d581  
    11// Test exceptions that add data but no functionality.
    2 
    3 #include <fstream.hfa>
    42
    53exception paired {
     
    2018                throw except;
    2119        } catch (paired * exc) {
    22                 sout | virtual_msg(exc) | '(' | exc->first | ", " | exc->second | ')';
     20                printf("%s(%d, %d)\n", virtual_msg(exc), exc->first, exc->second);
    2321                ++exc->first;
    2422        }
    2523
    26         sout | virtual_msg(&except) | '(' | except.first | ", " | except.second | ')';
     24        printf("%s(%d, %d)\n", virtual_msg(&except), except.first, except.second);
    2725
    2826        try {
    2927                throwResume except;
    3028        } catchResume (paired * exc) {
    31                 sout | virtual_msg(exc) | '(' | exc->first | ", " | exc->second | ')';
     29                printf("%s(%d, %d)\n", virtual_msg(exc), exc->first, exc->second);
    3230                ++exc->first;
    3331        }
    3432
    35         sout | virtual_msg(&except) | '(' | except.first | ", " | except.second | ')';
     33        printf("%s(%d, %d)\n", virtual_msg(&except), except.first, except.second);
    3634}
Note: See TracChangeset for help on using the changeset viewer.