[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] MacPerl warn and die format



At 7:55 -0500 12/30/98, Chris Nandor wrote:
> At 00.13 -0500 12.30.1998, John W Baxter wrote:
>>> Would there be any problems in having MacPerl use the same format as the
>>> regular distribution?
>>
>>Yes...MacPerl under MPW would become much less pleasant to use.  At
>>most, the change should be an option, or only in the non-MPW-tool
>>form, or both.
>
> I disagree.  If this behavior is to be kept, I think it should be limited
> to output directed to an MPW window itself, if possible.  There are too
> many places in modules and programs, including core modules that come with
> Perl, that depend on a certain format.
>
> If you want to take it on yourself to notify every author of every module
> on CPAN that checks $SIG{__WARN__}, $SIG{__DIE__}, $@, etc., then I suppose
> that would be a reasonable alternative, too.
>
> Of course, Matthias is the final word, but I don't think the current
> behavior is proper.  It breaks things.
>
> --
> Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
> %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

I can't imagine running a development tool under MPW without that 
behavior...it's what every compiler, etc, has done under MPW since 
1986.  Since MPW installs itself as a "foreign file system" <it was 
the first, and until CDs the only, one>, it's hard (if possible) to 
know whether output is to a file or a window:  a window IS a file. 
[This is why you don't need to save a script you are working on in a 
window...just execute it from another window and the current contents 
of the window ARE the file.

An alternative would, I suppose, be to write an MPW script which 
responds to your favored error output format in a rational way...that 
would still be harder to use than "Click in the error line, press 
enter".  The script would be run from a menu (or button in the newish 
MPW) and would try to parse the Perl-style error in a useful way.

   --John
--
John Baxter   jwblist@olympus.net      Port Ludlow, WA, USA
Give a man a fish and you feed him for a day.  Teach him to fish,
and you get rid of him for the weekend.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch