Hi Анастасия,
thanks, the first two problems are fixed in SVN 325.
Regarding repeated 10?10 always giving the same result I believe this is
what
the ISO standard wants. It has the advantage that APL programs behave
the same
way when run several times. IBM APL2 behaves in the same way.
For random numbers that change in every run, you can do *⎕RL←+/⎕TS *at
startup.
/// Jürgen
On 06/12/2014 11:34 PM, Анастасия Яблоков wrote:
The two following inputs cause APL to crash:
$ echo "**********************" | apl --script
$ echo "10?111111111111" | apl --script
Any characters like !,*,~ and , can cause the first one. Starts
happening after about 18 characters.
The second one can be used by large numbers being passed to the deal.
Doesn't occur without a number prefixing it (0 works in triggering the
bug).
Other non crash bug:
This shows the random function returning the same values on each run,
which isn't very random. This only occurs in scripts passed by stdin
or by the -f option.
$ echo "10?10" | apl --script
All bugs tested on both Debian 7.2 and OSX 10.9.
(input can be given in any form, echo used for clarity)