|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] No errro message when defining functions using |
Date: | Fri, 14 Feb 2014 14:05:46 +0800 |
Hi Elias,
not on my machine:Could it be that you had foo defined earlier?
⎕FX 'foo[x]' 'x'
1
)fns
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 (foo[x]).
/// Jürgen
On 02/07/2014 01:57 PM, Elias Mårtenson wrote:
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 same function using ⎕FX, it gets defined:
⎕FX 'foo[x]' 'x'1)fnsEMACS_NATIVE bar foo
But, it cannot be called:
foo[1]1SYNTAX ERRORfoo[1]^ ^
Regards,Elias
[Prev in Thread] | Current Thread | [Next in Thread] |