[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PATCH: provide %c and %u8c formatting in pickle printf()
From: |
Jose E. Marchesi |
Subject: |
Re: PATCH: provide %c and %u8c formatting in pickle printf() |
Date: |
Fri, 04 Oct 2019 15:25:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
But that seems a bit overkill? An alternative, probably more natural,
is to catch EOF around the loop, do the right thing, then re-raise:
try
THE_LOOP_INCLUDING_draw_ascii_line;
catch if E_eof
{
draw_ascii_line;
raise E_eof;
}
Thinking about this... we have this in dump:
try print_data :offset offset :top top :step 16#B;
catch if E_eof { print "\n"; }
If we make `offset' and `top' globals in print_data (as opposed to
function arguments) then we could abstract the ascii printing into a
print_ascii_line function, and call it in that catch:
try print_data :offset offset :top top :step 16#B;
catch if E_eof { print_ascii_line; print "\n"; }
wdyt?
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Jose E. Marchesi, 2019/10/01
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Henner Zeller, 2019/10/03
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Jose E. Marchesi, 2019/10/03
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Jose E. Marchesi, 2019/10/03
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Henner Zeller, 2019/10/03
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Jose E. Marchesi, 2019/10/04
- Re: PATCH: provide %c and %u8c formatting in pickle printf(),
Jose E. Marchesi <=
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Henner Zeller, 2019/10/05
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Jose E. Marchesi, 2019/10/05
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Jose E. Marchesi, 2019/10/05
- Re: PATCH: provide %c and %u8c formatting in pickle printf(), Jose E. Marchesi, 2019/10/04