From: nobu.nokada@... Date: 2004-02-20T21:27:46+09:00 Subject: Re: how to raise warning? Hi, At Fri, 20 Feb 2004 20:53:21 +0900, Robert Klemme wrote in [ruby-talk:93233]: > > My suggestion: Two names. Call the first one "warning" (the kind of > > warning that Ruby gives us) and the second one "warn" (a simple verb > > that just prints to stderr). > > I like the suggestion, but I'm not fully satisfied with the naming. They > are too similar and thus too easy to confuse. Trying to think of > something better... What about leaving "warn" as it is (i.e. no info on > location) and one of "report" or "source_warn" for a message with file and > line info? This way, no existing code would be broken and we had a clear > naming distinction. Doesn't perl use carp or croak for it? -- Nobu Nakada