[nhc-bugs] Re: [nhc-users] hat-observe message

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Tue, 16 Oct 2001 18:51:07 +0100


> 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