Ric,

You are absolutely right, DAT is an adverb. That is one of the parts of speech of J I am still getting used to. I went looking for a verb to do what 4!: does but could not find it and forgot where in the primer I had seen reference to it. So many new things to remember...

I'll go join the General forum now. I don't think I am at a level of competence yet that I would trust my ability to update the Wiki accurately. I would feel a lot more comfortable having somebody with more experience in the language verify that I have indeed found a problem and craft an appropriate solution.

I did not realize at first that there was more than one location for this material, and, yes, I should have provided a link. Oops on me...

Thanks for the help.

Tom

Sherlock, Ric wrote:
---List wrote:
In an effort to get some level of familiarity with J I am working
through a number of the excellent examples and essays.

I notice that a number of them have some relatively minor
problems, some
of which seem to be platform dependent, some are potentially minor
syntax problems (which are not always so minor if you are not yet good
with the language).

An example of the latter is in the "Building Applications"
lab example.
The line

DAT=: 'm' fread jpath '~system\examples\data\sales.dat'`

I suspect this is an error that appeared during the wikification of the lab. It 
doesn't appear in the interactive version of the lab that ships with J. I have 
fixed the page.

So, two questions: First, is this the right forum to report such minor
errors?

For questions about J primitives, syntax and grammar this forum is fine.
If you are reporting a suspected error in a Lab or a wiki page, then the 
General forum is probably more appropriate. Your post seemed to be a little of 
both so no problems.
If you do wish to report an error it helps to be specific about its location. 
If it is on a wiki page then give the link to the page. If it is in an 
interactive Lab then give the Chapter/page title or similar (In this case: ((1) 
7 of 17) Reading the data (ctd) ).

If you ask for Wiki editing permission 
(http://www.jsoftware.com/jwiki/EditingGuidelines#permission) you will be able 
to correct errors you find on the wiki yourself.

Second, can anybody explain why that trailing tie character
puts DAT in some odd state?

I think you have created an adverb:
  4!:0 <'DAT'
1
  '' DAT
SYMONS           2,469     1,207       181     3,688     7,197     2,250    
10,750     2,330     1,351     7,613    17,444    12,654
DONOHOE         43,343     7,723    25,798    33,529    10,542    24,913    
21,716    17,832    17,914    10,026    27,580    46,260
...
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to