|
|
| Author |
Message |
|
| thomasl_erlang at yahoo.c |
Posted: Wed Mar 26, 2003 6:51 pm |
|
|
|
Guest
|
erl_pp misbehaves for fun:s.
1. for a "fun f/1" with Extra info, it fails to print
(INVALID-FORM). This has been fixed.
2. the Extra info is printed with ~p, which means the
printed data can't be read back when line breaking
occurs. This has been fixed (the cost is that printing
the Extra may overflow the line).
(For future work, one might possibly not need to see
the Extra at all.)
3. I also made funs print like case/if/..., since
that's the way they normally are indented. The same
for 'query ... end' expressions.
The new code successfully prettyprints previously
problematic funs. I haven't tried 'query'.
Enclosed is a manual patch (to show what was done) and
a new erl_pp.erl for convenience.
Best,
Thomas
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|