[Aldor-l] BUG

Ralf Hemmecke ralf at hemmecke.de
Sat Jan 27 09:15:43 EST 2007


Hello,

I seem to have hit another bug.

Extract the attached files and simply type "make".

My output is given below. The functions foomain and blahmain are
identical except that they appear in different files. It seems that the 
compiler does not deal correctly with conditional exports across file 
bounderies.

Since I am writing a library, there is actually no "main" function. So 
putting it in one file is no option for me.

Any suggestions to work around that problem are welcome.

A short note to the code.

SparseAdditiveArray is basically like a sparse vector implementation 
where addition is possible and subtraction is only possible if the the 
ground domain has substraction.

SparseIndexedPowerProduct is basically turns SparseAdditiveArray into a 
multiplicative structure and thus exports division only if the "exponent 
domain" exports subtraction.

Please help help help.

Ralf



woodpecker:~/scratch/BUG>make
rm *.ao *.o *~
rm: cannot remove `*.ao': No such file or directory
rm: cannot remove `*.o': No such file or directory
rm: cannot remove `*~': No such file or directory
make: [clean] Error 1 (ignored)
rm blah foo
rm: cannot remove `blah': No such file or directory
rm: cannot remove `foo': No such file or directory
make: [clean] Error 1 (ignored)
aldor -mno-mactext -mno-abbrev -fao -fo -fx -DDEBUG -laldord blah.as
blah
Call blah
t=[]
s=[]
END blah
aldor -mno-mactext -mno-abbrev -fx -laldor foo.as blah.o

foo.as:
"foo.as", line 13:         s: T := t/t;
                    .................^
[L13 C18] #1 (Error) There are no suitable meanings for the operator `/'.

make: *** [foo] Error 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BUG.tar.gz
Type: application/x-gzip
Size: 1470 bytes
Desc: not available
Url : http://aldor.org/pipermail/aldor-l_aldor.org/attachments/20070127/a0d25fda/attachment.gz 


More information about the Aldor-l mailing list