Re: [Bug-apl] No errro message when defining functions using

2014-02-15 Thread Juergen Sauermann
Hi, I am afraid that the failed line number is about the granularity of error information available. For finer location info (column number) the parser would need to track the column; currently it doesn't. Since ⎕FX is a system functions (which can be called many times) there is no interfac

Re: [Bug-apl] No errro message when defining functions using

2014-02-13 Thread Elias Mårtenson
Thank you. I did not realise that the number indicated the line where the error occurred. I have updated the Emacs mode to display an error message and highlight the line where the error occurred now. Is there a way to get more detailed information as to what the error was? Right now I simply disp

Re: [Bug-apl] No errro message when defining functions using

2014-02-13 Thread Juergen Sauermann
Hi Elias, not on my machine: ⎕FX 'foo[x]' 'x' 1 )fns Could it be that you had foo defined earlier? The syntax error is then due to a niladic function called with an axis (which is no a valid pattern in APL). The return value of 1 is the index of the line that has caused the error

[Bug-apl] No errro message when defining functions using

2014-02-07 Thread Elias Mårtenson
When I try to define a function that takes no arguments, but does include an axis argument, the normal function editor complains: *∇foo[x]* bad editor command '∇foo[x]' : problem 'Bad function header at Nabla.cc:495' DEFN ERROR ∇foo[x] ^ However, if I try to define the sa