Re: [ooc-compiler] Position of runtime error
Brought to you by:
mva
|
From: August K. <fus...@co...> - 2005-05-14 22:06:09
|
Stewart Greenhill wrote: > Hi August, > >> In runtime error messages, OOC outputs the position where the error >> occurred but no info on line (or column) number, for instance: >> >> ## >> ## Runtime error in module Test at pos 171 >> ## Dereference of NIL >> ## >> >> It's kind of hard to find the position in an editor that lacks Emacs' >> `goto-char' function and even for Emacs users it would be more >> convenient with a line (and a column) number. > > [...] > > You can get this information using the 'ooef' utility. > > For example, > ooef src/Test.Mod 171 > > This gives you the source code context (the default behaviour, also > available via the --context switch). If you just want to know the line > and column you can do: > ooef --linecol src/Test.Mod 171 Ok, thanks. I still don't understand why the runtime can't output line and column as oo2c does by default. -- august |