Hi,

At Mon, 31 Mar 2003 06:39:01 +0900,
David King Landrith wrote:
> 
> There are a surprising number of ruby source files that have newline
> (\n) characters hardcoded as the line terminator--it appears that way
> more than half of the files do.  Shouldn't these be set to a macro
> that outputs $\ (or perhaps $,) character.  It seems to me that the
> most of the places where ruby programs write directly to stdout are
> not places where speed is of the essense (e.g., printing stack traces.)

Interesting but I doubt its necessarity and worthfulness.

> As a work around, I've dabbled a bit with doing traps in order to
> issue an endwin before the exception gets printed, but I have not
> found good documentation on how to do to traps, and it appears
> impossible to raise or throw an exception within a trap proc block.

begin
  # codes with ncurses
ensure
  Ncurses.endwin
end

-- 
Nobu Nakada