[Aldor-l] Segmentation fault
Ralf Hemmecke
ralf at hemmecke.de
Sun Mar 4 08:53:09 EST 2007
It seems that my version of the Aldor compiler
Aldor version 1.0.3 for LINUX(glibc2.3) (debug version)
does not allow me to recognize primes. :-(
Don't tell me aboout "prime?: % -> Partial Boolean", since I need the
one that is given below. And I am not very eager to uglify my code with
yet another workaround.
We clearly have
%4 >> Integer has SourceOfPrimes
T @ Boolean
and "prime?: % -> Boolean" is a default there.
Ralf
--------------------------------------------
aldor -fx -q1 -lalgebra -laldor aaa.ss
aaa
Segmentation fault
---BEGIN aaa.as
#include "algebra"
#include "aldorio"
main(): () == {
import from Integer;
b: Boolean := prime? 2;
stdout << b << newline;
}
main();
---END aaa.as
More information about the Aldor-l
mailing list