login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for SandBoxPileNotation revision 1 of 1

1
Editor:
Time: 2007/11/18 18:31:35 GMT-8
Note: pile syntax

changed:
-
Example of wrong indentation.

On August 19, 2006 12:47 PM Vanuxem Grégory wrote::
 
  Is this bug reproducible ?
 
  If someone can try to compile, in a fresh new axiom session,
  the attached file. I get a segmentation fault [when compiling
  the code using SPAD]

The aldor compiler gives a more reasonable result.
\begin{aldor}
#include "axiom"
#pile
MyIndexedOneDimensionalArray(S:Type, mn:Integer):_
                 Exports == Implementation where
   Qsetelt ==> SETELT$Lisp
   Qnew ==> GETREFV$Lisp
 
  Exports == OneDimensionalArrayAggregate S with
 
    myProperty
 
  Implementation == add
 
   minIndex x       == mn 

\end{aldor}

Correct indentation
\begin{aldor}
#include "axiom"
#pile
MyIndexedOneDimensionalArray(S:Type, mn:Integer):_
Exports == Implementation where
    Qsetelt ==> SETELT$Lisp
    Qnew ==> GETREFV$Lisp
 
    Exports == OneDimensionalArrayAggregate S with
 
        myProperty
 
    Implementation == add
 
        minIndex(x:%):Integer == mn 

\end{aldor}


Example of wrong indentation.

On August 19, 2006 12:47 PM Vanuxem Grégory wrote:

  Is this bug reproducible ?

  If someone can try to compile, in a fresh new axiom session,
  the attached file. I get a segmentation fault [when compiling
  the code using SPAD]

The aldor compiler gives a more reasonable result.

aldor
#include "axiom"
#pile
MyIndexedOneDimensionalArray(S:Type, mn:Integer):_
                 Exports == Implementation where
   Qsetelt ==> SETELT$Lisp
   Qnew ==> GETREFV$Lisp
Exports == OneDimensionalArrayAggregate S with
myProperty
Implementation == add
minIndex x == mn
aldor
   Compiling FriCAS source code from file 
      /var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/2129260382931220326-25px001.as
      using Aldor compiler and options 
-O -Fasy -Fao -Flsp -lfricas -Mno-ALDOR_W_WillObsolete -DFriCAS -Y $FRICAS/algebra -I $FRICAS/algebra
      Use the system command )set compiler args to change these 
      options.
   The )library system command was not called after compilation.

Correct indentation

aldor
#include "axiom"
#pile
MyIndexedOneDimensionalArray(S:Type, mn:Integer):_
Exports == Implementation where
    Qsetelt ==> SETELT$Lisp
    Qnew ==> GETREFV$Lisp
Exports == OneDimensionalArrayAggregate S with
myProperty
Implementation == add
minIndex(x:%):Integer == mn
aldor
   Compiling FriCAS source code from file 
      /var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/7122011750684548101-25px002.as
      using Aldor compiler and options 
-O -Fasy -Fao -Flsp -lfricas -Mno-ALDOR_W_WillObsolete -DFriCAS -Y $FRICAS/algebra -I $FRICAS/algebra
      Use the system command )set compiler args to change these 
      options.
   The )library system command was not called after compilation.