Yes, I suspect this will be a source of difficult to diagnose problems.
Perhaps J has reached the point of needing lint?
David Mitchell
Henry Rich wrote:
Me too. I found one of these things that had been in a
working application for years. It was supposed to log some
information out in case of error, but instead it did nothing.
When eventually I needed to look at the log, I discovered
the bug, but too late to help with the problem I needed
the log for.
Henry Rich
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bill lam
Sent: Friday, May 05, 2006 9:40 PM
To: Beta forum
Subject: Re: [Jbeta] J601M Bugs in Debug lab
I guess "wd'set text *',TXT" is executed as v (n v v) so result is a
verb in J601. It has been suggested to raise an error if there is a
orphan verb that is not assigned to a name within explicit
definitions.
but Roger Hui ruled it out. I still wish this can be done perhaps
provide an additional switch to turn if off just like
"assert." to catch
bugs that are hard to spotted during development.
David Mitchell wrote:
I found two problems with the Debug lab in J601M beta.
The first was 3 of 27, which says:
"The ? button on the Debug toolbar displays the Debug Help file."
I couldn't find a "?" button on the Debug toolbar.
The second problem was 16 of 27:
"The display should show goo suspended at line 2, with a
syntax error."
Line 2 of goo was
wd'set text *',TXT
where TXT is not defined, which, as a single sentence, resulted in:
+--+------------------+
|wd|+----------+-+---+|
| ||set text *|,|TXT||
| |+----------+-+---+|
+--+------------------+
In J504, the result of the sentence alone was:
|domain error: wd
| wd'set text *',TXT
in a script, the result was:
|syntax error: goo
| wd'set text *',TXT
Lorin Lund first reported this change 2005/12/22.
David Mitchell
----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm