
Why do I get the following message from hat-observe? There is enough output for hat-trail to work ok.
[ajc99@pcburum hier]$ hat-observe countAssocs HierLearn FUNCTION TABLE EMPTY Closing file 0
Is the module containing `countAssocs' written as a literate file? Or maybe using an indentation style where top-level identifiers are indented by one character or more? If so, then I guess this is probably a known problem that we have already fixed for the forthcoming release 1.10 (due approximately at the end of this week). Essentially, hat-observe can only sensibly report information about top-level functions, i.e. not locally-defined functions. In currently-released versions, it checks for top-level-ness of an identifier by the column position of its definition, which is rather a hack and pretty error-prone. From the next release, the top-level information will be generated correctly by the compiler itself. Regards, Malcolm

[ajc99@pcburum hier]$ hat-observe countAssocs HierLearn FUNCTION TABLE EMPTY Closing file 0
Is the module containing `countAssocs' written as a literate file?
Yes, good guess, it is a literate file. I'll wait for v1.10 then. Amanda -- Amanda Clare http://users.aber.ac.uk/ajc99/ Tel: +44 (0)1970 621922 Fax: +44 (0)1970 622455 Dept. of Computer Science, University of Wales, Aberystwyth, SY23 3DB

[ajc99@pcburum hier]$ hat-observe countAssocs HierLearn FUNCTION TABLE EMPTY Closing file 0
Is the module containing `countAssocs' written as a literate file?
Yes, good guess, it is a literate file. I'll wait for v1.10 then.
Actually my colleague Thorsten Brehm, who wrote the hat-observe tool, tells me that this particular error message belongs to an older version than the current 1.08, where it is fixed already. However, since we are hoping to release 1.10 this week anyway, you may decide just to wait. Regards, Malcolm
participants (2)
-
Amanda Clare
-
Malcolm Wallace